Tjaart, please do let us know what solution you arrive at for this. I think you can use the signed applet to do this -- Does anyone have a working example of that? An additional alternative is quite simple.
1) Add the following to your web page in the <head> section: <script type="text/javascript" src="http://fusion.stolaf.edu/chemistry/jmol/loaddata.js"></script> 2) Create an applet on your page anyway you want. 3) Add a link such as the following, or run that command as part of the document body "onload" method: <a href="javascript:retrieveModel('1crn')">1crn</a> or <body onload="retrieveModel('1crn')"> (for example) You can substitute anything you want for "1crn" there -- if it's just four digits, it retreives the Protein Data Bank file; if it is a full url, starting with http://, then it gets that file. If you want to give the user full control over what to load, use getModel() instead of retrieveModel(). See http://fusion.stolaf.edu/chemistry/jmol/loaddata.htm for an example. The only catch is that it's a bit indirect, as it uses our server here at St. Olaf College to do the transfer. Bob Hanson > Hi > > I am a newbie tryinh to developing pages with javascript. I am trying to > enable a user to load any pdb file (from the PDB) into Jmol from a > webpage. I have tried using the following: > > jmolApplet(600, "load http://www.pdb.org/pdb/files/1tx2.pdb"); > > without any success. It gives me an error saying "bad URL" but if I open > up the link in Firefox I see the physical pdb file. > > The idea is to allow the user to type in a pdb file code which will then > be automatically loaded. Any ideas? > > Thanks for any suggestions! > -- > Tjaart de Beer > University of Pretoria > Lynwood rd > Pretoria > South Africa > 0001 > > Email: [EMAIL PROTECTED] > [EMAIL PROTECTED] > > --------- > The software required "Windows XP or better" ... so I installed Linux > > > ------------------------------------------------------- > 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_id=7637&alloc_id=16865&op=click > _______________________________________________ > Jmol-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-users > ------------------------------------------------------- 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_id=7637&alloc_id=16865&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

