Hi David,

Your file is being downloaded as base 64 text data. Bob or Angel will have to 
explain the Jmol side of the various saves and exports on the Jmol menu, but 
one thing to keep in mind is that on the client side of this, you are pretty 
much at the mercy of how your browser handles these server file downloads.

I use a similar server approach to download simple text files from a page. I 
have no control after my server sends the file. For example, on the Mac side a 
new window opens, the file goes to the download folder, and it opens is Text 
Edit. On the Chrome side, it opens up in Text Exit (settable option on Chrome). 
While a new tab (window) does not open, a drop down dialog appears at the 
bottom of Chrome window.

I have no control of any of this from my Web page.

Otis



> On Jun 26, 2015, at 9:13 AM, David McGiven <davidmcgiv...@gmail.com> wrote:
> 
> Dear All,
> 
> I'm using JSMOL.min.js in my webpage. Everything seems to work fine.
> 
> I'm loading a PyMOL .pse session file and it's displayed correctly.
> 
> However, when I want to save this file to my computer (it sits in the server) 
> it doesn't work.
> 
> I open the JSMOL menu with right click and I go to :
> File -> Save -> Save a copy of pymolsession.pse
> Then it prompts me for a name.
> Then it opens up a new browser tab showing the binary file. The URL is 
> something like :
> data:;base64,fXEBKFUJY29sb3JfZ
> 
> This is not the behaviour I would expect. I can make it work if I go to the 
> web browser File menu and then save the page as. but this is not user 
> friendly at all.
> 
> If I go to the Menu :
> pymolsession.pse -> View pymolsession.pse
> 
> Then the web browser asks me to save the file. This is the expected behaviour.
> 
> I don't understand why the first option (more intuitive) doesn't work.
> 
> Could someone please help me with that ?
> 
> Thanks.
> 
> David.
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors 
> network devices and physical & virtual servers, alerts via email & sms 
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to