4
$\begingroup$

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.

$\endgroup$
5
  • $\begingroup$ 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. $\endgroup$
    – Nasser
    Oct 11, 2013 at 4:31
  • $\begingroup$ You might have to refer to the file as https://dl.dropboxcontent.com/.... or similar - see this $\endgroup$
    – cormullion
    Oct 11, 2013 at 6:53
  • $\begingroup$ 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. $\endgroup$ Oct 12, 2013 at 0:23
  • $\begingroup$ 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. $\endgroup$
    – Zhozer
    Oct 12, 2013 at 7:21
  • $\begingroup$ Unfortunately you can't. $\endgroup$
    – cormullion
    Oct 12, 2013 at 7:25

3 Answers 3

3
$\begingroup$

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.
$\endgroup$
1
2
$\begingroup$

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.

$\endgroup$
0
$\begingroup$

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).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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