In my previous message on this thread, I agreed that Jmol's javascript command was working in Safari on OS X. However, as I continue to test this code today, sometimes it stops working for no apparent reason. Once it stops, it seems to fail repeatably until I quit and restart Safari.
When it stops working, if the Jmol console is open and debugscript is on, the javascript command appears in the console, but the results of that javascript do not occur. I have not managed to examine the Java console when this is happening. So I am getting intermittant failures. So I have decided not to rely on Jmol's javascript command. Instead I use Jmol's message command to send a unique message, trap that in messageCallback, and use that to trigger the desired javascript code. I have used messageCallback extensively and have never found any issues with it. If anyone else observes this intermittant failure of Jmol's javascript command in Safari, I suggest that this be mentioned as a caution in the Jmol documentation entry on javascript. My OS X and Safari are up to date: 10.5.4 and 3.1.2 respectively. I am using Jmol applet 11.6.RC12. -Eric At 9/6/08, Dean Johnston wrote: >I can't reproduce this - the javascript command works just fine from >the Jmol console for me on both Firefox and Safari for OS X. > >Dean > >On Fri, Sep 5, 2008 at 6:18 PM, Eric Martz ><<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]> wrote: >It appears to me that the javascript command of Jmol does not work in >Safari on Mac OS X. >Examples, typed into the Jmol console: >javascript alert("hi") >or >javascript alert(document.location.href) >These display the alert in Firefox on Windows or Mac OS X, but not in >Safari on Mac OS X. >If this is a known limitation, I suggest that it be documented for >the javascript command in the Jmol reference manual. >Thanks, Eric > >------------------------------------------------------------------------- >This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >Build the coolest Linux based applications with Moblin SDK & win great prizes >Grand prize is a trip for two to an Open Source event anywhere in the world ><http://moblin-contest.org/redirect.php?banner_id=100&url=/>http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > >_______________________________________________ >Jmol-users mailing list ><mailto:Jmol-users@lists.sourceforge.net>Jmol-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/jmol-users > > >------------------------------------------------------------------------- >This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >Build the coolest Linux based applications with Moblin SDK & win great prizes >Grand prize is a trip for two to an Open Source event anywhere in the world >http://moblin-contest.org/redirect.php?banner_id=100&url=/ >_______________________________________________ >Jmol-users mailing list >Jmol-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users /* - - - - - - - - - - - - - - - - - - - - - - - - - - - Eric Martz, Professor Emeritus, Dept Microbiology U Mass, Amherst -- http://www.umass.edu/molvis/martz Top Five 3D MolVis Technologies http://Top5.MolviZ.Org 3D Wiki with Scene-Authoring Tools http://Proteopedia.Org Biochem 3D Education Resources http://MolviZ.org See 3D Molecules, Install Nothing! - http://firstglance.jmol.org Protein Explorer - 3D Visualization: http://proteinexplorer.org Workshops: http://workshops.proteinexplorer.org World Index of Molecular Visualization Resources: http://molvisindex.org ConSurf - Find Conserved Patches in Proteins: http://consurf.tau.ac.il Atlas of Macromolecules: http://atlas.proteinexplorer.org PDB Lite Macromolecule Finder: http://pdblite.org Molecular Visualization EMail List (molvis-list): http://bioinformatics.org/mailman/listinfo/molvis-list - - - - - - - - - - - - - - - - - - - - - - - - - - - */ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users