On 2005-04-26 (11:30) Bob Hanson wrote: >OK, Phil. You are using Mac/Safari, right? > >Looks like we have the start of a good mystery. Please tell us your >page so that others can check. We need a good, reproducible test. > >Q1: Could this be a jmol version problem? My pages (given below) are >both using the applet version: [Jmol Version 10.00 2004/12/17 >18:55] > >Q2: Why me? Can this be shown for two sites NOT involving my pages? >Who else can point us to sites using messagecallback handling? >
hi, I've posted a very simple test for accessing the JmolApplet. it does away with almost all complexity that can cloud this issue. you can see it here: <http://dev.molvisions.com/debugging/jmolcalls.html> it includes three methods: 1. getElementById 2. document.appletname 3. document.applets[] so far, all three methods work for me in OSX: Safari 1.3, FF 1, Moz 1.7.3; also in IE6 (winXP). a few oddities: 1. the messagecallback is somewhat inconsistent in its output. that may have to do with the way I implemented it. it does not seem to adversely affect the command stream, though. 2. I developed this on my localhost server, and it worked without flaw. then I copied it to my LAN www server and, without quitting my browser, tried it out. it failed with all sorts of security exceptions. I cleared my browser cache, quit and restarted, and now it works fine. oddity 2 may point to the issue of accessing different Jmol pages, IOW different JmolApplets, and somehow confusing the browser or the JVM. but it does not point to a problem with actually sending scripts to the JmolApplet. we should spawn a new thread for discussing the cross-page problems, IMO. one final note: method 2 above: document.appletname must account for the DOM of the page. IOW, if I put my applet inside a form named myform, for example, instead of directly under the body tag, my call would have to change to document.myform.appletname the other two methods do not require this change. regards, tim -- Timothy Driscoll molvisions - see, grasp, learn. <http://www.molvisions.com/> usa:north carolina:raleigh "As flies to wanton boys are we to the gods. They kill us for their sport." - William Shakespeare ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

