> Today, I used Jmol in my biochem class for the first time. I created a > few web pages and modified the scripts that Miguel used on the > JmolApplet v10pre5 preview pages.* I made a selection of buttons to > highlight different features, but occasionally I found myself wishing > that I had created a button to bring up a different view. Anyway, I > began to wonder just how hard would it be to pass a script from a text > box on a form to the JmolApplet?
Not much > Would this take some real knowhow, or > could a novice like me accomplish it? You could certainly do it :-) Take a look at some of the Jmol v8 scripts on: http://jmol.sf.net/scripting There is a little demo called 'Advanced Scripting' It has a text box where you can enter arbitrary commands. There may be a lot of stuff there, but do not get confused/distracted. Here are the important parts: [form name="area"] [textarea name="script" cols=40 rows=10][/textarea][br] [input type="reset" value="Clear Script"] [input type="button" value="Execute Script" onClick="document.jmol2.script(document.area.script.value)"] [/form] Also, take a look at Tim Driscoll's page: http://www.molvisions.com/community/jmol/jm_cmdline.html To look at Tim's page do a 'View -> Page Source' Don't be afraid to ask questions. > Thanks, > Chris > > *I have noted that I created the scripts using Miguel's work as a guide. Thanks ... but I'm really not worried about it :-) Miguel ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

