The problem just comes from the fact that the Jmol script hanged at background [white]. The next jmol command was not executed, which means that "javascript jmolLoaded" had not been executed by Jmol. So there is JS runtime error due to Jmol. -Paul
Le 14 janv. 2010 à 20:53, Grossman, Robert B a écrit : > It was in a javascript command separated from the jmolscript() call. > > It was in a function that was supposed to be called after Jmol loaded. > > jmolApplet(250, 'background [white]; javascript jmolLoaded();'); > > function jmolLoaded() { > alert(mol); > } > > > ________________________________ > From: Paul Pillot <paul.pil...@ac-orleans-tours.fr> > Reply-To: <jmol-users@lists.sourceforge.net> > Date: Thu, 14 Jan 2010 14:49:27 -0500 > To: <jmol-users@lists.sourceforge.net> > Conversation: [Jmol-users] background color JS error > Subject: Re: [Jmol-users] background color JS error > > Was the alert in the same jmolscript, or in a javascript command separated > from the jmolscript() call? > > Le 14 janv. 2010 à 20:19, Grossman, Robert B a écrit : > >> When I had background: [white] followed by an alert, the alert failed to >> appear. Seems like a runtime JS error to me. >> >> >> ________________________________ >> From: Paul Pillot <paul.pil...@ac-orleans-tours.fr> >> Reply-To: <jmol-users@lists.sourceforge.net> >> Date: Thu, 14 Jan 2010 14:17:42 -0500 >> To: <jmol-users@lists.sourceforge.net> >> Conversation: [Jmol-users] background color JS error >> Subject: Re: [Jmol-users] background color JS error >> >> I don't think it sends a javascript error neither. On my tests it only sends >> a jmol error via the messagecallback method when enabled. >> Paul >> >> Le 14 janv. 2010 à 20:12, Grossman, Robert B a écrit : >> >>> ah yes, that works. >>> >>> still, it should avoid throwing a JS error that prevents later commands >>> from being executed. >>> >> >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues through >> interactions with peers, luminaries and emerging and established companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues through >> interactions with peers, luminaries and emerging and established companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users