It seems that the first hit is caused by document.write not being supported 
by XHTML (documented in several websites)

My test:
XHTML 1.0 Transitional

_jmol.currentDocument.write(text);
at line line 834 within
function _jmolDocumentWrite(text) {

throws an error in Firefox 3
No error in Opera, but no applet

Clue:
Does document.write work in XHTML?
No. Because of the way XML is defined, it is not possible to do tricks like 
this, where markup is generated by scripting while the parser is still parsing 
the markup.
You can still achieve the same effects, but you have to do it by using the 
DOM to add and delete elements.
(source: http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite)


And quoting 
http://jmol.sourceforge.net/docs/JmolAppletGuide.html#XHTMLSupport

the standard Jmol.js Javascript library will not work under properly 
compliant XML browsers. An alternative, largely similar, but entirely 
unsupported library is available ... insert address here ...
(that JmolAppletGuide doc is old --Miguel's times? ... but true indeed)


I've tested the alternative to document.write given at
http://weston.ruter.net/projects/xhtml-document-write/
http://shepherd-interactive.googlecode.com/svn/trunk/xhtml-document-
write/xhtml-document-write.js

and, althogh it does not solve the problem, is on its way:

Opera displays a functional applet, but below it is the  yellow box that says 
"you don't have Java" (generated by Jmol.js)

Firefox displays a Java box with an error, applet class not found, and the 
yellow box below it

IE8 displays nothing --seems not to like xhtml at all --even with no Jmol 
code in the page, it just displays a blank page and does a download --of the 
page?.


More to come...



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to