Yes, but that is not the same. The problem is simply that the JmolApplet
command enters scripts into the <param> tag of the applet code. Those do not
respect line endings. So the data command fails. Try setting an
"appletReadyCallback" and passing your script when you get that from the
signed applet.
Bob
2011/9/25 Angel Herráez <[email protected]>
> Further progress:
>
> > I guess I could put the state into another (hidden) textarea and use that
> instead of the
> > variable.
>
> That does not work either.
>
>
> > I could also parse the variable and insert line breaks (not sure)
>
> This works:
>
> var st = jmolGetPropertyAsString('stateInfo', '', appletID);
> var st2 = st.split('"model inline"');
> st2[1] = st2[1].replace(/\n/g,"|");
> st = st2.join('"model inline"');
> [...]
> appletParent.innerHTML = jmolApplet(350, st, appletID);
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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 the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users