From: Miguel <mi...@jm...> - 2005-07-27 00:28:41
|
> It's been discussed several times on this list, and I understood that the use of a **signed** applet will allow to load molecular files from anywhere on the local file system --even from any other web server-- > I am trying to use a standard <INPUT TYPE=3DFILE> to pull molecules for= m the hard disk, I am not familiar with <INPUT TYPE=3DFILE> > and deliver them to the signed applet. > However, I find that the absolute path returned from input > is taken by JmolApplet as relative, i.e. appended to the > applet or page current path, so nothing is loaded. Relative paths are always interpreted by the applet as relative to the we= b page in which the applet resides. > Anybody has tried this before? Or is it limited to working with the app= (which of course can do it via its File>Open menu)? I believe it should work if you use a URL that specifies the 'file://' protocol On Windows file://c:/molecules/something.xyz On *nix file:///home/angel/moleculas/algo.xyz > Note that this not only affects opening local files, > but will also concern a possible --and interesting-- > mechanism for loading files from the internet, e.g. > from PDB. Both will be key features for a Jmol-based > Protein Explorer, for example. Using the signed applet, you should be able to load compressed files directly from the PDB using the following cgi: load =22http://www.rcsb.org/pdb/cgi/export.cgi/1CRN.pdb.gz?format=3DPDB&pdbId=3D= 1CRN&compression=3Dgz=22; (As a reminder, you must use the *signed* applet if you wish to allow the= applet to contact web servers other than the web server from which it was= loaded.) It has been some time since I tested this, but I believe that it should still work. Miguel ----- Open Source Molecular Visualization www.jmol.org miguel=40jmol.org ----- |