First part is right -- no single quotes in the Jmol JAVASCRIPT command.
(Same for MESSAGE and ECHO -- these commands either take no quotes or double
quotes because they always have.)
The message from MSIE is coming from the applet when it tries to run the
browser's eval method. Jmol first checks with
eval(!!_jmol.noEval)
This is supposed to return FALSE if _jmol.noEval is undefined, null, or
false.
On Mon, Jun 14, 2010 at 12:38 PM, Otis Rothenberger
<[email protected]>wrote:
> Bob,
>
> I ran into this problem when I needed to hold off on an inline load of
> Indiana University SMILES to molfile data until after an applet was loaded
> with a starter Xe model. The Xe is a quick load and it looks pretty sitting
> there while a "please wait" message echos on the screen. Once this Xe is
> loaded (applet and the model data), I can do business with the IU data. The
> Jmol javascript command in the load script worked, but not in MSIE.
>
> In trying to track this down, I used all of the following in the console:
>
> 1) javascript alert("nuts")
> 2) javascript 'alert("nuts")'
> 3) javascript "alert('nuts')"
>
> Item 2 does not work. For items 1 and 3, Firefox and Chrome say, "nuts."
>
> MSIE (8.0.6001...) says:
>
> evalintermediatevaluetoreturn = eval >> ( << "!!_jmol.noEval" )
>
> Perhaps I have a syntax error in my script, but with the above result, I
> called it quits on MSIE.
>
There's a bug report with Java related to this:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4324382
that long variable name is actually created by Java. But that's 10 years
old.
I'm also using 8.0.6001 and not seeing any issue.
> Let me go back and check this out. Maybe the console wasn't the way to test
> this. Also, I have not checked this recently. The above information was in
> an email to you a while back, and I was using an older version of Jmol - the
> HOLD version, I think!
>
> I'll get back to you after lunch.
>
> Otis
>
>
>
>
> On 6/14/2010 12:18 PM, Robert Hanson wrote:
>
> Hmm...
>
> On Mon, Jun 14, 2010 at 10:42 AM, Otis Rothenberger <[email protected]
> > wrote:
>
>> Jonathan,
>>
>
>
>> 3) MSIE (see below)
>>
>> MSIE seems to completely ignore the Jmol Javascript command. The only
>> way I've found around this is to use browser sniffing and write a clumsy
>> Timeout routine to call the JmolLoaded() function in MSIE
>>
>>
> I think we have talked about this, but I'm forgetting the details. I have
> not seen this in any of my own production work, and I do not believe it is
> true. Can you give us an example, Otis?
>
> You are saying that the following does not work in MSIE?
>
> jmolApplet(300,'javascript "alert(1234)";')
>
> ?
>
> You sure? Please test that, Otis.
>
> Bob
>
>
>> Otis
>>
>>
>> On 6/14/2010 9:36 AM, Jonathan Gutow wrote:
>> > A question for you javascript mavens.
>> >
>> > I'm trying to help the SageMath people with their Jmol interface. I
>> need to get some information about directories through the messageCallBack
>> mechanism and am running into issues with the order applets are loaded.
>> When a page with many applets is loading the load order is unpredictable
>> and I am finding that the message callback information seems to get garbled
>> as to which applet the message comes from (maybe the messages are
>> overlapping). I have no way of knowing ahead of time how many applets are
>> on a page as they are created on the fly by the server.
>> >
>> > Anyway. I think my problem would be solved if I could simply run a
>> function that queries each applet in sequence _after_ they have all loaded,
>> rather than having each applet send a message callback as it finishes
>> loading. So I'm looking for a way to know that the page is ready for me to
>> do this.
>> >
>> > Any ideas?
>> >
>> > Thanks,
>> > Jonathan
>> > Dr. Jonathan H. Gutow
>> > Chemistry Department [email protected]
>> > UW-Oshkosh Office: 920-424-1326
>> > 800 Algoma Boulevard FAX:920-424-2042
>> > Oshkosh, WI 54901
>> > http://www.uwosh.edu/facstaff/gutow
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> > lucky parental unit. See the prize list and enter to win:
>> > http://p.sf.net/sfu/thinkgeek-promo
>> > _______________________________________________
>> > Jmol-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>> >
>> >
>>
>> --
>> Otis Rothenberger
>> chemagic.com
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit. See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> 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
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
> _______________________________________________
> Jmol-users mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
> --
> Otis Rothenbergerchemagic.com
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
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
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users