> You just have to close it. I don't think there is any elegant 
> solution to that.

This is a problem, as the newly opened tab (blank page) totally 
obscures the current page where the dialog to save or open is 
displayed by IE.

I have found a workaround by hacking into JSmol source.
JSmol.nojq.js has code for 
        Jmol._saveFile = function(
The subsection starting with
 // Asynchronous outputto be reflected as a download

is using a   target="_blank"   for the form submit.

If I edit that function (or overwrite it by defining if again in a 
subsequent Javascript) so that it uses 
  target="phpProcessingSave"

and I add in my page a (hidden with CSS) 
 iframe name="phpProcessingSave"

everything seems to work without nasty side effects.

Anyone can think of any objections?




------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to