On Feb 6, 2006, at 4:08 p, Bob Hanson wrote:
I've committed to CVS a slight modification of the callback system.
In particular, for script message callbacks (that "Jmol executing
script" message) the JavaScript interface now allows for:
mymessagecallbackfunction(target,message,additionalinfo)
where that third parameter is the script that is executing. This,
of course, allows for better debugging and possibly better response
to user action, because the web application now has information
about WHICH button, for example, was pressed.
Of course, because JavaScript is loose with its function types, the
standard format
mymessagecallbackfunction(target,message)
works just the same as always -- it just disregards the
additionalinfo coming back. So this change won't have any bearing
on any web applications already using callbacks.
I am hugely supportive of better methods for accessing Jmol info from
javascript, and I will be happy to provide what feedback I can. that
said, a number of Jmol pages make integral use of the existing
callback mechanism, including some of my own. :-) so I suggest that
any discussion about how to make a better mechanism, and obviously
any changes that affect the current implementation, should be posted
to the users list as well.
I know your current change is invisible to the end user, Bob; it just
reminded me that most users do not follow the developers list, and
they should be in the loop on this effort IMO.
regards,
tim
--
Timothy Driscoll em: [EMAIL PROTECTED]
molvisions - see. grasp. learn. ph: 919-368-2667
<http://www.molvisions.com/> im: molvisions
usa:virginia:blacksburg tx: [EMAIL PROTECTED]
"Let each and every cell rejoice! For today we celebrate the first,
glorious anniversary of the Information Purification Directive! We
have created, for the first time in all history, a garden of pure
ideology, where each worker may bloom secure from the pests of
contradictory and confusing truths."
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers