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
                        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









-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to