MathGroup Archive 2014

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Embedding CDF in a Google Spreadsheet Form

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132303] Re: Embedding CDF in a Google Spreadsheet Form
  • From: Kyle Keane <kylek at wolfram.com>
  • Date: Wed, 5 Feb 2014 03:25:29 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

Hi All,

This is a reply to an older post that just came across my radar about
combining Google Forms with embedded CDFs.

Here is a link to the original message:
Embedding CDF in a Google Spreadsheet Form
http://forums.wolfram.com/mathgroup/archive/2013/Sep/msg00001.html 

I am not sure if there have been any developments on this. If so, please
update us. 

As you all likely know, both Google Forms and CDFs can either be deployed
as a standalone webpage or as an embedded object in a webpage using the
respective deployment wizards. It sounds like you were trying to edit the
source code for the standalone webpage of the Google Form, this seems like
a more complex solution to me. I would use the embed codes on a simple
webpage.
https://support.google.com/drive/answer/87809?hl=en 
http://www.wolfram.com/cdf/adopting-cdf/deploying-cdf 

You can place the embed codes from the Google Form and CDF into a simple
.html file (the code for a simple webpage that does this is pasted below).
Does this do what you want? If yes, then awesome. If no, then please
explain what other functionality would be useful or what you are looking
for. 

Example webpage (take this code and save it as an html file and open it):
<html> 
<body> 
<h1>A very simple webpage :)</h1> 
<p>Here is an embedded CDF using the embed code provided on the
Demonstrations website or given through the export function in
Mathematica.</p>   

<script type='text/javascript'
src='http://demonstrations.wolfram.com/javascript/embed.js'
></script><script type='text/javascript'>var demoObj = new DEMOEMBED();
demoObj.run('TreeBender', '', '525', '551');</script><div
id='DEMO_TreeBender'><a class='demonstrationHyperlink'
href='http://demonstrations.wolfram.com/TreeBender/' target='_blank'>Tree
Bender</a> from the <a class='demonstrationHyperlink'
href='http://demonstrations.wolfram.com/' target='_blank'>Wolfram
Demonstrations Project</a> by Theodore Gray</div><br />   

<p>Here is an embedded Google form using their embed code from the share
form button.</p>   

<iframe
src="https://docs.google.com/forms/d/1RbUxAYUryPSp7PFHSXZShoDX52fHAVryVHUl
sTujOfI/viewform?embedded=true" width="760" height="500" frameborder="0"
marginheight="0" marginwidth="0">Loading...</iframe>   

</body> 
</html>

Sincerely, 
Kyle Keane, PhD
Research Programmer 
Education Software Technology
Wolfram Research Incorporated
217-398-0700 ext. 5220
 
-----
This message and any attachments may contain confidential or privileged
information. If you are not the intended recipient please destroy and
notify the sender. Message and attachments copyright C 2014, all rights
reserved. Any unauthorized dissemination, distribution or copying is
strictly forbidden.





  • Prev by Date: Re: Learning to Program in Mathematica
  • Next by Date: Memory leaks problem
  • Previous by thread: Re: Problem in solving differential eqn by DSolve
  • Next by thread: Re: Embedding CDF in a Google Spreadsheet Form