posts: 3661 United States

I'm not familar with Mathematica or a CDF file, but here goes...

What exactly are you trying to embed?

The https://www.p-brane.com/nano/display56 that you reference is simply a PNG file, which (I don't think) is valid inside an IFRAME element.

The https://www.p-brane.com/nano/display63 appears to be an HTML file, right, that you're storing in the file gallery?

Where is the acutal CDF file? Is it https://www.p-brane.com/nano/dl55

Have you tried to use the HTML plugin instead of IFRAME? Or even the JS plubin should work:

{js file="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"}
{JS()}    var cdf = new cdfplugin();
    cdf.embed('https://www.p-brane.com/nano/dl55', 588, 380);


- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 21 United States

Hi Rick,
Yes https://www.p-brane.com/nano/display56 is the fermidistribution.png file, and the https://www.p-brane.com/nano/display63 is the html code shown in the sample2 iframe command above. The fermidistribution.cdf file is stored in as https://www.p-brane.com/nano/dl55 or as https://www.p-brane.com/nano/display55 depending if you are downloading or displaying it (respectively). I tried the html command as shown in sample3 and sample4 above. It did not produce anything (blank frame).

I have not tried the js plugin and will give it a try. Thank you.

I did get it to work in IE only using the iframe command and the html shown in sample5. The CDF hops around in the frame for some reason. For some reason, this does not work in Firefox or Chrome.

posts: 21 United States

Hi Rick,
The JS did not work in Firefox or Chrome either. It works in IE 8 and so does the IFRAME example. Mathematica support says it works in Safari but not Fireforx or Chrome. It's still not clear where the problems is.

Upcoming Events

No records to display