I think when you set window.location you are effectively overwriting the
page.
The write command works by sending the data to a server and having it be
reflected back to the user.
On Sun, Jan 26, 2014 at 5:20 PM, Roberto Mosca wrote:
> The download button that I press downloads a different fi
The download button that I press downloads a different file with respect to the
one that is loaded in the JSmol applet.
In any case, my question is why the applet stops working after I set
window.location to a different URL, in case you know it.
On the other hand, I thought Javascript is not al
Where is the need for window.open() or window.location coming from in the
first place? Jmol has a WRITE command that would let you do that, I think.
Why not just use
write file "xxx.pdb"
That's much cleaner.
On Fri, Jan 24, 2014 at 12:13 PM, Roberto Mosca wrote:
> Ok, sorry, I could fix th
Ok, sorry, I could fix the problem by using window.open() instead of
setting window.location.
In any case, anyone can help me in understanding what happens?
Thanks in advance! :)
Roberto
On Fri, Jan 24, 2014 at 6:01 PM, Roberto Mosca wrote:
> Dear all,
>
> I am experiencing a strange problem
Dear all,
I am experiencing a strange problem with JSmol. I have a JSmol applet on my
page and a link to download the PDB file.
The link works by setting "window.location" to a php page that forces the
download of the PDB file (via headers like "Content-Disposition:
attachment; filename=...") wit
5 matches
Mail list logo