> Miguel, is there a jmol messageCallback function
> that allows integration into JavaScript so that when
> a command is executed within Java or, for example,
> an animation structure frame is displayed, JavaScript
> can respond to it. Chime, for example, allows a callback
> after a load command to indicate that the structure
> was in fact loaded (or not).

Yes, Jmol implements the callback functions that are present in Chime.

MessageCallback, PickCallback, ButtonCallback, AnimFrameCallback (is there
another one?)

The callbacks are there and seem to work properly.

However, several warnings:
 - they have not been heavily tested
 - the exact format of the messages returned by
   MessageCallback is probably *not* the same

Basically, all this code is immature ... we need someone to work with it
and use it in order to flush out problems.

Finally, be advised that I think this callback scheme poorly designed. And
it stresses LiveConnect and JavaScript because almost no other applet does
this. Therefore, I fear it will continually be a source of problems.

Therefore, I plan to supplement it with a more general event notification
scheme. To do this I need people with application development experience
to validate the design.

For now you should use the Chime-compatible callbacks. If/when that goes
well, and you feel like taking the next step, we can start discussing the
other mechanism.


Miguel



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to