Re: [Jmol-users] background color JS error
What about background white ? Jmol does accept js color names. Paul Le 14 janv. 2010 à 19:41, Grossman, Robert B a écrit : When I sent the script background [white] to Jmol, it not only failed to run, but it prevented further execution of Javascript commands. I suggest that you accept JS names for colors, but even if you don't, I suggest that you avoid throwing JS errors by checking that the value is in an acceptable format. -- 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
Re: [Jmol-users] background color JS error
ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. From: Paul Pillot paul.pil...@ac-orleans-tours.fr Reply-To: jmol-users@lists.sourceforge.net Date: Thu, 14 Jan 2010 14:08:22 -0500 To: jmol-users@lists.sourceforge.net Conversation: [Jmol-users] background color JS error Subject: Re: [Jmol-users] background color JS error What about background white ? Jmol does accept js color names. Paul Le 14 janv. 2010 à 19:41, Grossman, Robert B a écrit : When I sent the script background [white] to Jmol, it not only failed to run, but it prevented further execution of Javascript commands. I suggest that you accept JS names for colors, but even if you don't, I suggest that you avoid throwing JS errors by checking that the value is in an acceptable format. -- 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
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
Re: [Jmol-users] background color JS error
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
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
Re: [Jmol-users] background color JS error
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
Re: [Jmol-users] background color JS error
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