Sorry if that wasn't clear enough.

I'm reading the state from the original window using
        var x = jmolGetPropertyAsString("stateInfo")
and then applying it to the new window using
        script javascript:x

On 8 Apr 2008 at 21:56, Angel Herráez wrote:

> For MOLfiles witout content in the first line (mine is generated as inline 
> model by reading a 
> textarea), the call to
>       jmolGetPropertyAsString("stateInfo")
> returns a string that has
>       data "model inline"
> followed by a line break and the second line of the MOLfile.  It seems that 
> this is due to the 
> first data line (empty here) being appended after "model inline" without any 
> new line.
> 
> So then, when I feed that string into Jmol (resizable popup) using
>       getState()
> there is an error -format not recognized.
> 
> This is fixed if I manually enter any text -even a space- into the first line 
> or if I replace the 
> first  \n  with \n \n
> 
> Could this detail be fixed in stateInfo?


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to