> 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=FILE> to pull molecules form the hard disk,
I am not familiar with <INPUT TYPE=FILE> > 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 web 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 "http://www.rcsb.org/pdb/cgi/export.cgi/1CRN.pdb.gz?format=PDB&pdbId=1CRN&compression=gz"; (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 [EMAIL PROTECTED] ----- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users