Modification of “Picturing derivatives”

There have been problems with viewing the CDF file in my post “Picturing derivatives” (see the post “Problems with picturing derivatives” for details.) I have replaced the embedding code


WolframCDF source="http://www.abstractmath.org/Mathematica/New5thDegreePolynomial.cdf" CDFwidth="531" CDFheight="620" altimage="http://www.abstractmath.org/Mathematica/New5thDegreePolynomial.pdf"

with the Javascript code
var cdf = new cdfplugin();
cdf.embed('http://www.abstractmath.org/Mathematica/New5thDegreePolynomial.cdf', 531, 690);
cdf.setDefaultContent('http://www.abstractmath.org/Mathematica/New5thDegreePolynomial.pdf');

The first version uses the CDF Plugin for WordPress provided by Wolfram. The second is a javascript-enabled code suggested by Wolfram’s document on how to embed CDF files. About this code they said

For greater flexibility we recommend using the Wolfram CDF Embed Script, which is a free open source JavaScript library. It requires no other libraries and guarantees cross-browser compatibility, provides a way to check that the CDF plugin is installed, displays a CDF Player logo and link when the plugin is missing, and offers a means to display static images in place of the interactive content.

Well it certainly doesn’t guarantee browser compatibility.

The new version works on my copy of IE8 running on an XP computer and on Mozilla Firefox. The bottom is cut off on Chrome. (This behavior was reported for Firefox as well by someone else running IE8 on an XP computer.) This is exactly the behavior I had with the previous code.

I would like to hear from readers about problems with the new version. I will experiment with changing the CDF file.

Send to Kindle

One thought on “Modification of “Picturing derivatives””

  1. I am using Safari on Lion – the graph looks fine and I can interact. It does look there is something at the bottom that is cut off.

Leave a Reply

Your email address will not be published. Required fields are marked *