Re: [Jmol-developers] cannot write menu to file in 14.6.2

2016-09-18 Thread Robert Hanson
fixed. OK, the issue here was that the JavaScript function btoa(string) does not work with UTF-8-encoded strings. The solution was to use string.getBytes("UTF-8") to get a proper byte array, and then use Jmol's own base64 encoder to turn that into base64. On Sat, Sep 17, 2016 at 4:58 PM, Angel

Re: [Jmol-developers] cannot write menu to file in 14.6.2

2016-09-17 Thread Angel Herráez
Well, guess what It does not work for me in your page, but it does after I change the language to US English in the popup menu It only likes to save the English menu ;.) Forget it On 17 Sep 2016 at 15:51, Robert Hanson wrote: write menu ? worked fine for me at https://chemapps.stolaf.edu/jm

Re: [Jmol-developers] cannot write menu to file in 14.6.2

2016-09-17 Thread Robert Hanson
write menu ? worked fine for me at https://chemapps.stolaf.edu/jmol/jsmol/jsmol/htm On Sat, Sep 17, 2016 at 10:29 AM, Angel Herráez wrote: > Ok, thanks > > I have later been able to do it from Java applet - so it may be that > > -- > > On 17 Sep 2016 at 9:53, Rob

Re: [Jmol-developers] cannot write menu to file in 14.6.2

2016-09-17 Thread Angel Herráez
Ok, thanks I have later been able to do it from Java applet - so it may be that On 17 Sep 2016 at 9:53, Robert Hanson wrote: I don't think write menu was implemented in JSmol. Will take a look. -- __

Re: [Jmol-developers] cannot write menu to file in 14.6.2

2016-09-17 Thread Robert Hanson
I don't think write menu was implemented in JSmol. Will take a look. On Sat, Sep 17, 2016 at 5:37 AM, Angel Herráez wrote: > Is this a bug? > > On https://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm > > in the console: " write menu ? " > gives this error after requesting the file name: > > ERROR

[Jmol-developers] cannot write menu to file in 14.6.2

2016-09-17 Thread Angel Herráez
Is this a bug? On https://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm in the console: " write menu ? " gives this error after requesting the file name: ERROR en guión: TypeError: er.printStackTrace is not a function --