set pickcallback "alert" should work. Works for me....
Daniel Techen wrote: >Hi there, > >I'm using the applet version of Jmol for a webapplication. It's really useful, >however I'm having two issues. > >I'd like to set a pick callback to call a custom javascript function. If I >open the console and issue SET pickcallback = "alert", I expect a standard >browser messagebox to come up whenever I select an atom. The pickcallback gets >set properly (saw it in FireBug), but nothing happens when selecting an atom. >Am I doing something wrong? > >The website I'm creating, is kind of Web 2.0-ish. So the applet is being added >to the page via DOM scripting (just adding an applet tag). On Mac OS X Firefox >crashes about two in three times when loading the applet (I guess it's >something with Firefox's jvm). Does anyone have an idea, what's the problem >here? > > > There's no problem using document.write() to create an applet, but that of course is not allowed in XML. I think I recall that there are serious browser bugs creating applets using DOM node methods. Egon and I went into this in detail a couple of years ago on this list. What sort of XML/XHTML are you using? What design issues are driving using DOM nodes this way for you? >Thanks in advance & best, >Daniel > >------------------------------------------------------------------------- >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 >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

