From: Jonathan G. <gu...@uw...> - 2009-11-13 23:09:50
|
I'm looking for some ideas here. I have been working on some additional javascript code that automatically limits the number of live jmol applets on a page to avoid memory problems. Here's my problem: 1) In a simple page that loads once, repeated javascript calls that replace an applet with a picture and then put the applet back using jmolApplet(size, script, n) work fine. The applet is repeatedly replaced with the appletID = 'jmolApplet'+n. 2) I'm trying to make this work for the SAGEmath people. In that case, I get the odd behavior that each time I try to reload the applet with the jmolApplet(size, script, n) call the n seems to be ignored and the automatic numbering in Jmol.js takes over. The pages are dynamic, but the Jmol div is defined by me through javascript. I could make a special version of Jmol.js, but I would like to have SAGEmath use as standard Jmol protocols as possible. Any ideas, what could be causing the problem? Is it an odd javascript parsing problem? The n does not seem to be ignored for the first placement of the applet. Thanks for your input. Jonathan Dr. Jonathan H. Gutow Chemistry Department gu...@uw... UW-Oshkosh Office:920-424-1326 800 Algoma Boulevard FAX:920-424-2042 Oshkosh, WI 54901 http://www.uwosh.edu/facstaff/gutow |