De: Tjaart de Beer <[EMAIL PROTECTED]>
>
>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?

I think this is a security problem, the Applet probably doesn't have the right 
to access an other webserver than the one it was downloaded from.
You should check the archives of the mailing lists (or wait for someone to 
help), there are probably examples on how to do this.

Nico



-------------------------------------------------------
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

Reply via email to