For those interested I've completed some more testing... 1) The example included in the .zip archive works on Linux (Ubuntu) with Firefox. 2) Windows XP SP3 + IE7/8 seems to break most pages that include javascript. I cannot get this example to work with that combination and many of my old pages which worked in windows XP with IE7 before I updated to SP3 are now broken as well. I think Microsoft now has some serious problems with standards compliance. Or do I just have a broken Windows XP installation?
Jonathan On Oct 3, 2009, at 8:01 PM, William Stein wrote: > Hi, > > I just got this from a Jmol dev. I've posted his zip archive > (mentioned below) here: > > http://wstein.org/home/wstein/patches/limited%20Live%20Example.zip > > William > > ---------- Forwarded message ---------- > From: Jonathan Gutow <gu...@uwosh.edu> > Date: Sat, Oct 3, 2009 at 1:37 PM > Subject: Here's a first pass at a Jmol javascript code to limit # of > live Jmols on a page... > To: wst...@gmail.com > > > William, > I've been working on this in dribs and drabs, but have finally > put together something that seems to play nice on MacOS (Firefox, > Safari) and Windows (with Firefox, can't do IE Explorer as my Windows > install is choking on its updates at present). Haven't checked Linux > yet, but have never had trouble on Linux when it works on MacOS. > I'm attaching a .zip of a directory containing an example web > page (limitedtest.html), the javascript code (limitedlive.js) plus a > copy of the JmolApplet, Jmol.js and the necessary data files (.spt, > .log and .png). The test page just lets you add lots of copies of the > applet with the same thing loaded into each copy of the applet. This > page is set up so that it will work locally on your desktop machine > without going through a server. It will not work on your server > without adjusting the path to Jmol on your server (see the header of > the .html file). > The key pieces of code are the initJmolAppletMonitor, > sleepJmol, wakeJmol and limitlive functions. The functions > addNewJmolTable, addNewJmolDiv and upDateStatus are specific to making > the testing easy and might be appropriate for adaptation to adding > Jmol applets into a worksheet. The rest of the functions are either > helpers for these functions or standard Jmol applet bookkeeping > functions that I use on all my web pages making them easy to run > either from a server or locally. > Hope this is useful. Feel free to contact me with questions. > > Jonathan > -- > William Stein > Associate Professor of Mathematics > University of Washington > http://wstein.org Dr. Jonathan H. Gutow Chemistry Department gu...@uwosh.edu UW-Oshkosh Office:920-424-1326 800 Algoma Boulevard FAX:920-424-2042 Oshkosh, WI 54901 http://www.uwosh.edu/facstaff/gutow --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---