Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to upload my CDF files to Blogspot. I tried the follow script:

<script src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js" type="text/javascript"></script> <script type="text/javascript"> var cdf = new cdfplugin(); cdf.embed('https://www.dropbox.com/s/erpdi1rqwk5d3vm/Spe%20Para%20Dat.cdf', 500, 500); </script>

But when I try to acess it, I receive the message "File could not be loaded". I thought that maybe it was because I am using an Import[], but even if I try to use a CDF Example I have the same problem. For me it seems that the problem is with the link of the file I updated.

Do you know how to solve this?

Thanks in advance.

share|improve this question
    
Try to put the CDF file in the same folder as the HTML page. And simply use embed('myCDF.cdf'). i.e use simple relative file name. It should work. –  Nasser Oct 11 '13 at 4:31
    
You might have to refer to the file as https://dl.dropboxcontent.com/.... or similar - see this –  cormullion Oct 11 '13 at 6:53
    
I have CDFs on blogspot here (ibnhconsulting.blogspot.com) and my embedded CDF code is identical to yours so suggest something wrong with dropbox URL -- it doesn't look like their public linking URL. –  Mike Honeychurch Oct 12 '13 at 0:23
    
Thanks. The suggestion of @cormullion works for me. I have another one: Can I use Import/Export with a CDF? I am trying to make an online file converter using Mathematica. –  Zhozer Oct 12 '13 at 7:21
    
Unfortunately you can't. –  cormullion Oct 12 '13 at 7:25

3 Answers 3

I also have uploaded CDF files to Blogspot, see e.g. Binomial Probability, using Dropbox. However, I encountered some issues with this:

  1. Is there an efficient way to link to a Dropbox folder? Instead I had to upload, share, and then modify the URLs (using the FAQ) for both the .cdf and .png files separately, because Dropbox gives the files quite different URLs, even though they are in the same folder (e.g. CDF and PNG).
  2. I tried viewing Binomial Probability on a computer without the CDF Player installed. The .png previews do not work, yet the URLs are ok, e.g. PNG Fixed now; had wrong URL
  3. The Binomial Probability CDFs load and run fine under Chrome and Safari. However, when I change the controls, the page does not refresh properly.
share|improve this answer
1  
try method here mathematica.stackexchange.com/questions/38026/… and see if this works. –  Nasser Nov 30 '13 at 8:45
    
+1 Paul - nice CDF post! –  Vitaliy Kaurov Nov 30 '13 at 14:59

Here are examples I made specifically for CDF on Blogspot

http://cdfexamples.blogspot.com

I recorded a walk-through talk specifically about this:

You may need to register - but it is a free video. Take a look at

11:22 minutes - micrblogging section.

share|improve this answer

I use Blogspot for CDF (blog) and some examples (otherwise feel free).

I agree with TheDoctor observations.

The process changed across time.

I use DropBox (as it allows sharing file URL directly). You have to modify the code to specify the file location of the preview and the CDF.

Various browsers seem to have issues with trying to runs multiple CDF's (perhaps not surprising): hence I make one CDF per post.

Finally, there are issues related to code with user input or retrieving data using FreeCDF versus CDFPlayerPro (see here).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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