Thanks Rolf for providing an example. It works as expected. BTW, how did you 
display the "Loading, please wait" messages? I like the feedback messages that 
keeps the users from thinking that jmol is doing nothing..

-Rob


> The message callback returns two parameters. I think the first one
> identifies the applet that send the message and the second one contains
> the message that is send.
> So if you would add "echo APPLET_DONE" at the end of your load script as
> Bob proposed, you could check for this in your callback function:
> 
> function temp_function(app,msg) {
>   if (msg.match(/APPLET_DONE/)) {
>     property = getPropertyAsString("boundboxInfo");
>   }
> }
> 
> (If you don't use the value of 'property' within 'temp_function' don't
> forget to define it globally.)
> 
> You can see how this works for example here:
> http://www.imb-jena.de/cgi-bin/3d_mapping.pl?CODE=1deh
> 
> Look at the function '_jmolMessageCallback'. I use it to log the
> messages, look for some severe errors and display the number of
> currently selected atoms.
> 
> Regards,
> Rolf
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users

_________________________________________________________________
If you like crossword puzzles, then you'll love Flexicon, a game which combines 
four overlapping crossword puzzles into one!
http://g.msn.ca/ca55/208
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to