> We are trying to develop a site using Jmol. We need to be able to
> run a script from an external text file both when the applet loads
> and when clicking buttons.
Scripts can be run as 'subroutines'
script someCommonScript.txt;
Assuming that your script is in the same directory as the .html page.
> We haven't had much luck figuring out how
> to do this from the documentation (probably more our fault than the
> documentation). Could anyone give us some suggestions?
...
<script>
jmolApplet(300, "script relative/path/to/subroutineScript.txt");
</script>
...
<script>
jmolButton("script relative/path/to/subroutineScript.txt");
</script>
...
Miguel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users