>The signed applet does not have access to the function "getAbsolutePath" any
>more than the browser does. I'm pretty sure >that's true. So you no longer
>have access to exactly where a file is.
the jmolGetPropertyAsString("filename") function actually can return the
absolute path of the local file in safari and ff3. It doesn't really help in
the context of "reading and sending file" in this case.
>jmolGetPropertyAsString("filecontents") , ah, yes!
>You have to realize that Jmol is using a VERY special trick to read files from
>the hard drive. Basically, there is one thread and >one thread alone that can
>do that -- it's the one that started the applet. So when the applet is
>started, Jmol creates a special >thread from that that waits for commands that
>involve load and uses THAT thread instead for that. The thread that runs
>>JavaScript cannot do this. So when you use functions like that from
>JavaScript, you get that security violation. I won't mention >how many hours
>and days it took me to figure that out! But it's definitely the key to how the
>applet works. We can load files >from the local drive specifically because we
>are loading them as scripts and files to display using that special mechanism.
>So then the only thing we really need is a way to make sure that you are
>reading the file properly.
>Do try this:
>http://chemapps.stolaf.edu/jmol/docs/examples-11/s.htm
>click first the html link "test load" on the bottom right.
>Then click the link "test show".
>What these do is
>a) load the local file data into a variable.
>b) create a model from that variable data rather than from the local file
>itself
>c) show the contents of the variable in JavaScript.
Bob, these do not work for me, it throws up the filenotfound exception b/c it
appends the server url in front of my local files
_________________________________________________________________
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users