Dear Andy These are places where you can read about the way to use callbacks:
http://chemapps.stolaf.edu/jmol/docs/#k617 (from a Jmol script) http://jmol.sourceforge.net/jslibrary/#jmolSetCallback (from Javascript in a web page, using Jmol.js) About "function name" in set ScriptCallback "function name": that is the name of a javascript function that you must define in Javascript in your web page. Example: <html> <head> <script src="Jmol.js" type="text/javascript"></script> <script type="text/javascript"> function Andy(a,b,c) { var aa = "" + a var bb = "" + b var cc = "" + c ...(here go desired actions, using aa, bb and cc parameters)... } </script> </head> <body> etc. <script type="text/javascript"> jmolInitialize(".") jmolApplet(300) jmolScript('set ScriptCallback "Andy" ') </script> etc. </body> </html> Hope that's clear to you. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

