> [you must be working with Gareth, right?]
No, I noticed the MathJax issue a while back. Gareth's post just prompted
me to add a follow up.
>So what is MathJax, and what does it have to do with Jmol? Sounds
interesting....
Bob, I guess you now know what MathJax is. For anyone else, who is not
familiar, MathJax is an open source JavaScript display engine for
Mathematics (MathML and TeX) that works crossbrowser
http://www.mathjax.org/
So, for sciencefocused web content, CMSs, blogs, forums etc there may well
be occasions when it would be nice to have MathML and and Jmol on the same
page.
I came across DragMath/MathJax in the context of Moodle and Mahara.
https://moodle.org/mod/forum/discuss.php?d=201737
https://mahara.org/interaction/forum/topic.php?id=3759
BTW If anyone is looking for another JavatoJavaScript conversion project
;)
DragMath is an opensource Java applet Equation Editor that works nicely
with MathJax. http://www.dragmath.bham.ac.uk/
I'm aware of some other JavaScript Equation Editors such as WIRIS and
CodeCogs, but they are all proprietary.
http://www.wiris.com/
http://www.codecogs.com/latex/about.php
> It's a pretty simple solution. Really what the problem is is that both
> .Jmol and MathJax are competing for the AJAX processing. [snip]
Thanks, Bob that was really useful. Ended up using a variation on your
suggestion, to display JSmol after MathJax, similar to the following:
MathJax.Hub.Queue(function () {
loadJmol();
});
loadJmol = function() {
Jmol.setDocument(0);
Info.deferApplet = false;
Info.deferUncover = true;
jmol1 = Jmol.getApplet("jmol1", Info)
$("#appletplace1").html(Jmol.getAppletHtml(jmol1));
Info.deferApplet = true;
Info.deferUncover = true;
jmol2 = Jmol.getApplet("jmol2", Info)
$("#appletplace2").html(Jmol.getAppletHtml(jmol2));
}
Finally, I have recently noticed that Opera (latest version 12.16 on
Windows 7 or Fedora 19) is no longer displaying JSmol for binary files
(e.g. .pse, .pdb.zip) on, say,
http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm
This was all working with Opera a few weeks ago though I'm not sure if
recent Opera or JSmol updates have broken things. Perhaps related to the
recent removal of 'JSmol hacks to jQuery'' which otherwise seems to work
well.
Cheers
Geoff
