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

For security reasons an unsigned applet can only download data from the
web domain from which it was loaded.

Any other behavior ... like trying to load a page from another web server
domain ... is deemed unsafe/insecure behavior.

Therefore, you cannot access the data directly from www.pdb.org

This security constraint is imposed by the Java runtime environment. It is
enforced in order to prevent applets from becoming yet another vehicle for
delivering malicious software.

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

If your web server is Apache on Linux/Unix and you can enlist the
assistance of your web server administrators then I have some 'proxy
rules' that allow your web server to behave as though it has the entire
PDB stored locally.

Under this scenarios, the applets fetch .pdb URLs from your web server ...
but your web server dynamically goes to the PDB to fetch the underlying
data file.

> Thanks for any suggestions!

Let me know if this is something that you want to pursue.


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

Reply via email to