Hi all,
I read this thread:
https://community.accelrys.com/message/3720#3720
However, I've had no luck with directly linking to files. I've started a new thread as I'm unsure if what I'm doing is completely relevant to that thread. Here's what I'm trying to do:
A protocol is run via some javascript (from a hosting PP protocol), which saves a file & returns its URL.
Then, the hosting protocol calls the window.open() Javascript method on this URL - to prompt a download.
The question is - how do I ensure I get the correct URL? I'm specifically opening a file in my user directory, i.e:
C:\Program Files\Accelrys\PPS\\public\users\ed\tempfilepleasedelete.sd
When I look at the URL supplied in the "results" tab of a run PP protocol, I get a prefix, followed by a long string, like this one:
http://servername:1234/scitegic-bin/DownloadFile/SID/AgD4AKR8AAAA... ...@%21u3D%21/filenameC:/Program@%21u20%21Files/Accelrys/PPS/public/users/ed/tempfiletodelete.sd
So, I'm a tad puzzled about how to link to the file correctly.
I'm using Firefox, though I cannot open the link I'm giving in IE either. I'm aware of this security feature in Firefox:
http://en.wikipedia.org/wiki/File_URI_scheme#Mozilla
I'm not sure what I'm doing wrong!
Thanks in advance,
Ed.