On 2005-04-21 (11:49) Bob Hanson wrote: >Well, this is probably a problem that is beyond my capabilities to >get around. Still, if this is a general problem, then it's good to >get it noted now so that we can think about how to get around it if >necessary in the future. >
>>http://www.stolaf.edu/people/hansonr/jmol/docs/examples/moveto.htm hi Bob, in your showscript() fcn, you try to send a script to the applet via document.jmol.script(). this is where it breaks down - finding the object called jmol. try this instead: 1. add an id param to your applet tag: id="jmol" send scripts via getElementById: document.getElementById('jmol').script() that should get moveto.htm working at least. I wanted to help, so I downloaded your moveto.htm and examples.js files to see if I could get them running here. I hope you don't mind a few comments... I see that you are essentially writing your entire page using javascript. this has many disadvantages, including being very difficult to debug, forcing the client machine to do all of the parsing, and making it somewhat dicey to call document objects via javascript (at least on some systems). also, a user can completely shut down the page simply by disabling javascript. if you are open to suggestions... switch to php or cgi for your html generation. both are dynamic, and both allow you to modularize your code using includes, which seems to me to be what you are trying to accomplish now with js. also, you can get rid of a lot of painful headaches concerning client-side vagarities in js implementation. and finally, when you do run into trouble, it is much, much easier to debug. :-) regards, tim -- Timothy Driscoll molvisions - see, grasp, learn. <http://www.molvisions.com/> usa:north carolina:raleigh ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

