looks like you lost the line returns. Is your textarea set up properly?

2011/9/24 Angel Herráez <[email protected]>

> I am having a problem in passing a model + state from one applet to
> another.
> Tested on 12.2.RC5
>
> 1. A model is loaded into JmolApplet (unsigned) in the form of MOLdata from
> a textarea.
>
> 2. The state of the model is put into a javascript variable, using
> jmolGetPropertyAsString('stateInfo'). I think I cannot use "save state"
> since I am next
> destroying the applet.
>
> 3. The applet is destroyed, and a new one is created (signed).
>
> 4. The state is loaded into the new applet putting the javascript variable
> as the 2nd argument
> of the jmolApplet() call.
>
> The problem is, the model doesn't show up and there is an error in the Java
> console, related
> to trying to load the model as inline data from the state. There is no
> error in a similar case
> where the model was loaded from file.
>
> This in the error:
>
> eval ERROR: unknown file type
> ----line 1 command 31 of function _setfilestate:
>         load data "model inline"    CDK     0924111715SMILES: C1CC1  3  3
>  0  0  0  0  0  0  0
> 0999 V2000    3.3167    2.2994    0.0000 C   0  0  0  0  0  0  0  0  0  0
>  0  0    4.0667    1.0003
> 0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0    2.5667    1.0003    0.0000
> C   0  0  0  0  0  0  0  0
> 0  0  0  0  1  2  1  0  0  0  0   2  3  1  0  0  0  0   3  1  1  0  0  0  0
> M  END end >> "model inline"
> <<
> ----line 1 command 4 of function _setstate:
>         _setfilestate
> ----
>         _setstate
>
>
> And this is the relevant part of the state:
>
>  load data "model inline"
>
>  CDK     0924111712
> SMILES: C1CC1
>  3  3  0  0  0  0  0  0  0  0999 V2000
>    3.4833    3.3327    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
>    4.2333    2.0337 0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
>    2.7333    2.0337 0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
>  1  2  1  0  0  0  0
>  2  3  1  0  0  0  0
>  3  1  1  0  0  0  0
> M  END
> end "model inline";;
>
>
> Maybe it's related to (lack of) newlines?
> How can I sort this out?
>
> Thanks for any advice
>
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to