Angel, Good point although perhaps moot with Bob's update to Jmol.js from last night. I'm not sure if he plans to make that part of the "official" Jmol.js. If not I'll probably need to do what you suggest.
Already had everything wrapped in the CDATA comments. As with many things, I'm not sure why, but since it seems to be necessary I did it. Jeff *********************************************** Jeff Hansen Department of Chemistry and Biochemistry DePauw University 602 S. College Ave. Greencastle, IN 46135 jhan...@depauw.edu *********************************************** On May 7, 2009, at 4:52 AM, Angel Herráez wrote: > Jeff, > > One good reason to use a separate JS overriding Jmol.js, rather than > modify Jmol.js itself, is that you have an easier route when Jmol.js > is upgraded. The affected function will likely not change, but you > will have to edit teh new Jmol.js again and again to insert your > changes. > I suggest to make a Jmol_xhtml.js file withthe redefined function and > load both files in your pages. > > As to the text being interpreted as markup or not, I have no > experience with xhtml, but I read yesterday about the convenience of > using CDATA comments arouns the script tag. Have you tried that? > > <script type="text/javascript"> > /* <![CDATA[ */ > jmolInitialize(".") > jmolApplet(300, 'load "alkaloid.mol"; ') > * ]]> */ > </script> > > I am setting up my test page at > http://biomodel.uah.es/Jmol/xhtml/ > in case anyone is interested > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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