Thanks guys - that code does indeed work for me, and isolating the
'set hovercallback' into a buttonised 'onclick' call still works too.
I've just thought, perhaps it's an escaping issue - I think this is
the first time I've used doulbe quotes in my script. Let me go and
find out..

EDIT: Haha, fantastic, it was that! I've changed my literal double
quotes to be " and it works perfectly :oD Thanks again for your
working examples guys.

- N David Brown



2009/6/21 Robert Hanson <[email protected]>:
> set hovercallback "alert" works for me. -- Applet only.
>
>
>
> 2009/6/20 Angel Herráez <[email protected]>
>>
>> David, works fine for me:
>>
>> <html>
>> <head>
>> <script src="Jmol.js" type="text/javascript"></script>
>> </head>
>> <body>
>> <script type="text/javascript">
>> jmolInitialize(".")
>> jmolApplet(300, 'set hoverCallback "alert"; load butane.pdb; ')
>> </script>
>> </body>
>> </html>
>>
>> Make sure you don't have a quotes conflict
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Are you an open source citizen? Join us for the Open Source Bridge
>> conference!
>> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
>> $250.
>> Need another reason to go? 24-hour hacker lounge. Register today!
>>
>> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
>
>
> 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
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to