Some of my older pages do not use Jmol.js. All my current development
is with Jmol.js, with occasional "extensions" such as

function addCallback(sappcode,functionName){
return sappcode.replace(/\<param/,"<param name='messagecallback' value='"+functionName+"' />\n<param")
}

which allows the addition of callback parameters.

All the documentation examples at http://www.stolaf.edu/people/hansonr/jmol/docs/examples now use Jmol.js with this sort of added extension.

Reasons I'm exclusively using Jmol.js now include:

1. The realization that maximizing the number of browsers/platforms that I wanted my pages to run on required some pretty nasty tricks. I can let Miguel worry about the implementation details. When word comes that something somewhere doesn't work, I'd rather install a new Jmol.js in a few choice directories than retool all my pages.

2. There were/are serious limitations using Jmol.js the "old" way (allowing the Jmol.js functions to use document.write), but now, since one can "turn off" direct document writing and instead just get the code from the function returns and add them wherever/whenever one wants using .innerHTML() or document.write(), those problems have gone away.

3. I rarely do anything as simple as throw up an applet on a single page with just a single molecule in there.

4. I'm moving more toward "write the applet on the fly" applications rather than the old "write the applet as the page loads". This is very easy with Jmol.js.

That said, no one should feel obligated to upgrade anything that is working to newer Jmol.js or .jar files unless doing so makes the applet (a) load significantly faster or (b) load more reliably. Both of these HAVE been improvements lately.

Bob Hanson





--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to