On Wed, Feb 2, 2011 at 12:56 PM, Jonathan Gutow <gu...@uwosh.edu> wrote:

>
> Cool.  What conference exactly?
>

http://www.icsti.org/spip.php?rubrique49


> >
> > I did slip that semicolon in somewhere along the way there. So if
> > this is your problem, maybe somehow your JavaScript is stripping all
> > the newline characters. Not a good idea. Are you perhaps splitting
> > on \n and forgetting to put that back in? Something's amiss
> > there.... I don't think it's a problem inside Jmol.
> That's an idea.  I don't remember doing that, but I only recently came
> back to this code after about 4 months off...I'll check.  It makes
> some sense because what we actually want to do is store the script as
> a hidden div in the page, which can get saved on the server and thus
> restore user changes across openings of the page.  This  means that I
> did have some massaging to make it work OK in a div.  I think I
> replaced all the \n with <br/>.  The idea being that they would then
> be replaced with \n before passing back to the applet.  I'm pretty
> sure I didn't strip the \n from the backup string version, but I will
> check.
>

That'll do it. I'm sure that's it. The save orientation command does not
check to see how many parameters there are, so that next moveto was simply
being included on the line of the previous save command. I think if you had
used

set debug
set debugscript

you would have found that.

Bob


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
------------------------------------------------------------------------------
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