The new CDF (computable document format) lets you embed a Manipulate or other interactive graphics on your website, and users can play around with your little script using the free player.

What steps do I need to follow to

  1. Create the CDF file correctly so that it displays a static picture (that I choose) if the user doesn't have the player and fires up the player if they do?
  2. Make the necessary changes to my website/server to enable this?
link|improve this question

feedback

3 Answers

up vote 6 down vote accepted

This is just to update everyone on this topic. Wolfram Research released detailed blog and video tutorial "CDF Embedding in a Nutshell". It shows how to use built-in Mathematica wizard to deploy CDF online into HTML pages and Word Press blogs. URL:

http://blog.wolfram.com/2012/02/22/mathematica-qa-series-cdf-embedding-in-a-nutshell/

link|improve this answer
Heyyyy no fair!... you had insider info on the publishing time! By the time the blog appeared in my feed and I thought of posting it, the answer is here! :P Thanks a lot though :) – R.M Feb 23 at 1:53
@R.M You are welcome ;-) – Vitaliy Kaurov Feb 23 at 4:45
feedback

For part 2, you must add the following to your <head> section

<script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script>
<script type="text/javascript">
    var cdf = new cdfplugin();
    cdf.embed('/path/to/filename.cdf', width, height);
</script>

For part 1, you can embed a static picture for people with no CDF plugin by using the cdf.setDefaultContent function:

cdf.setDefaultContent('<p>Your replacement content</p>');
cdf.embed('/path/to/additional.cdf', width, height);

For more details, see the Web Delivery page.

link|improve this answer
feedback

You could look at the following:

http://reference.wolfram.com/mathematica/howto/CreateAComputableDocumentFormatFile.html

That also explains, the wizard to create the html code for your web page.

Edit: OP wanted a precis:

Select you manipulate cell and choose (v.8.0.4): File -> Deploy. That will generate the HTML automaticaly.

link|improve this answer
3  
Could you condense the information to at least the key steps involved? I'm aware of that link and also aware of this blog post where it's detailed out, but the question was aimed more towards making this site a repository of information :) I know that the author of the blog publicized this proposal, but I'm not sure if he has signed up (or for that matter, even who he is). – R.M Jan 17 at 21:34
Your question did not indicate that you want a precis. – ruebenko Jan 17 at 21:39
I do not see it in 8.0.1 on OS X. is this Deploy menu item only in 8.0.4, only in windows, or am I missing something else? – acl Jan 23 at 14:57
@acl, yes, this is one of the few new features in V8.0.4 – ruebenko Jan 23 at 16:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.