Ok, thanks for the information. I'll rewrite it with the callback pattern.
Paul
Le 27 janv. 2013 à 15:51, Robert Hanson a écrit :
> That is, in fact, the correct behavior.
>
> In order for a script to appear in the history, it has to have been entered
> onto the queue, and the scriptWait...() methods do not do that. As much as
> possible, you should avoid scriptWait methods. Not all script commands can be
> given that way in JSmol, anyway. Much better to provide a JavaScript command
> at the end of your script that will act as a callback when the script is
> completed.
>
>
>
>
>
> On Sun, Jan 27, 2013 at 4:24 PM, Robert Hanson <hans...@stolaf.edu> wrote:
> I should be able to track that down...
>
>
> On Sun, Jan 27, 2013 at 4:00 PM, Paul Pillot
> <paul.pil...@ac-orleans-tours.fr> wrote:
> Thanks Bob !
> I've made more tests using the signed applet on the test2.htm page and found
> the same problem : script sent via Jmol.scriptWait AsArray(jmolApplet0,...)
> are not added to the history, whereas scripts sent through
> Jmol.script(jmolApplet0,...) are.
> On the test page simple.html (that uses Jmol.js and the signed applet),
> scripts sent via jmolScriptWaitAsArray(...) are added to the history.
> I suspect there is a thread issue involved ?
> Paul
>
> Le 27 janv. 2013 à 13:25, Robert Hanson a écrit :
>
> > There's a mistake in the link on that page. You need this after the
> > filename:
> >
> > ?SIGNED&USE=JAVA
> >
> > not just
> >
> > ?SIGNED
> >
> > That's because I made the default on that page now to be HTML5, not JAVA.
> >
> > I'll get that fixed later today.
> >
> > Bob
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> 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
>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> 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
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users