On Feb 4, 2011, at 9:01 AM, Angel Herráez wrote:

> I'm rather surprised about the last posts in this thread. Up to now,
> I had the "knowledge" that the safest way to avoid timing problems
> was to put the script in the jmolAplet call and not in a jmolScript.
> Now it seems there are situations where the other is better (plus the
> callback, of course).
I think it depends what you are doing.  If  you can be sure that your  
script contains semi-colons at the end of every line the JmolApplet  
call should work fine.  That's the other safety feature I am  
considering rather than the callback + JmolScript.  I can strip all \n  
and add a semi-colon in their place if they do not exist.
>
> Jonathan, just a note. I cannot give details now (this is sort of an
> accumulated perception), but my troubles with line endings have
> always been less if using a textarea to hold the data. So maybe your
> hidden DIV could instead be a hidden TEXTAREA and you need less
> massaging and have less trouble.
> I think that the browsers handle better the newlines in textareas.
> At least this is what I reached when experimenting with passing model
> data between the 2D drawing applet (JChemPaint or others) and the 3D
> viewing applet (Jmol).
Thanks for the idea.  I'll give it a try.

                          Dr. Jonathan H. Gutow
Chemistry Department                                 gu...@uwosh.edu
UW-Oshkosh                                           Office:920-424-1326
800 Algoma Boulevard                                 FAX:920-424-2042
Oshkosh, WI 54901
                  http://www.uwosh.edu/facstaff/gutow






------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to