Re: How do you embed a Mathematica CDF in a Tikiwiki blog post? Posted by waterglass 24 Feb 2014 18:29 GMT-0000 posts: 24 I also posted this question at the Mathematica Community website as: How do you embed a CDF in a Tikiwiki blog post?
Posted by Rick Sapir / Tiki for Smarties 24 Feb 2014 20:55 GMT-0000 posts: 3665 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: Copy to clipboard{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); {JS} HTH, - 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.
Posted by waterglass 26 Feb 2014 04:59 GMT-0000 posts: 24 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.
Posted by Rick Sapir / Tiki for Smarties 26 Feb 2014 11:31 GMT-0000 posts: 3665 Seems to be working for me.... I'm prompted to install the CDF plugin. Is that what is expected? I'm not sure what is supposed to happen? HTH, - 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.
Posted by waterglass 15 Mar 2014 03:36 GMT-0000 posts: 24 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.
Posted by Rick Sapir / Tiki for Smarties 17 Mar 2014 11:49 GMT-0000 posts: 3665 Can you show me a working example? The example I posted in this thread seems to be working for me (in FF). HTH, - 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.