Rolf, I just found a bug in the GUI for JSmol that made it so that MSIE
executed commands in the search box twice -- I think it may be the same
with JenaLib:

<input class="jmol" type='text' id='jmol_command' size='30'
onKeypress='if (event.keyCode == 13) {idbSubmitScript()}'>

<input class="jmol" id="run_jmol_command" type="button"
onClick='idbSubmitScript()' value="run">



At least for me, a combination just like that on jsmol.htm fired both
onKeyPress and onClick -- same command twice -- in MSIE specifically. So
all my hand-entered commands were being executed twice!

At least for me, I had to change that onKeyPress to:

onKeypress='if (event.keyCode == 13) {idbSubmitScript(); return false}


Nasty!

Also, this next part probably doesn't have anything to do with your
business, but I thought I would let you know anyway. To complicate things,
my threading interrupts made the two issuances occur concurrently and
produced very strange results. Particularly when I issued this command:

!set echo top left; t=now();refresh;isosurface vdw;t = now(t);echo @t

If this command is given twice, rapidly, then the echo is not what you
might expect:

41
391189626

Whoah! Setting debugScript TRUE, we see what is happening:

$ !t = now(); delay 5;t = now(t);echo @t
t = now();
delay 5;
$ !t = now(); delay 5;t = now(t);echo @t
t = now();
delay 5;
t = now(t);  // return from the FIRST delay
echo @t;
41
t = now(t); // return from the SECOND delay!
echo @t;
391189626

That's because of the "!", which interrupts the first script and starts the
second. And the fact that I am repurposing the variable t. Here it is
without the !:

$ t = now(); delay 5;t = now(t);echo @t
t = now();
delay 5;
$ t = now(); delay 5;t = now(t);echo @t
t = now(t);
echo @t;
5027
t = now();
delay 5;
t = now(t);
echo @t;
5049

My mistake to leave that "!" in there....

Bob


On Tue, Nov 26, 2013 at 6:29 PM, Robert Hanson <[email protected]> wrote:

> try adding a delay of a fraction of a second. I think your script is just
> too fast. What about slower scripts, like isosurface creation?
>
> Just to be clear, "JSmol" and "Jmol" are really one thing; both Java and
> HTML5, so let's call these "with Java" and "with HTML5" or something like
> that rather than "JSmol" and "Jmol".
>
> Bob
>
>
> On Tue, Nov 26, 2013 at 3:49 PM, Rolf Huehne <[email protected]>wrote:
>
>> Am 26.11.2013 22:15, schrieb Robert Hanson:
>> > I misunderstood. Somehow thought we were talking about the monitor
>> > message still. All my tests with
>> >
>> > set echo top left;echo xxxxxxx;refresh;........more here......;echo;
>> >
>> >
>> > work fine. Can you give me some example that does not?
>> >
>> There might be some platfom-specific differences. With Firefox 25.0 on
>> Win7 on my laptop at home the wait message seems to be always wisible.
>> With Firefox 25.0 on Linux at the office it wasn't. I will try it again
>> tomorrow.
>> An example command would be "background black" (size: 600x600 pixel).
>> With Jmol on Linux the wait message was most of the time visible for a
>> small fraction of a second, but never with JSmol. On Win7 it is now
>> always visible in JSmol (and much longer than in Jmol on Linux).
>>
>> Interestingly and somehow in contrast to the above, the JSmol speed
>> increased on my laptop by a factor of about 10 (regarding the number of
>> atoms, roughly comparing the rotation speed with about 5000 and 50000
>> atoms) after I updated a few days ago from Firefox version 22 to 25. The
>> Firefox update was the only change. But with Firefox version 25 on Linux
>> the speed is about the same as with Firefox 22 on Win7.
>>
>> Regards,
>> Rolf
>> --
>>
>> Rolf Huehne
>> Postdoc
>>
>> Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
>> Beutenbergstrasse 11
>> 07745 Jena, Germany
>>
>> Phone:   +49 3641 65 6205
>> Fax:     +49 3641 65 6210
>> E-Mail:  [email protected]
>> Website: http://www.fli-leibniz.de
>>
>>            Scientific Director: Prof. Dr. K. Lenhard Rudolph
>>         Head of Administration: Dr. Daniele Barthel
>> Chairman of Board of Trustees: Dennys Klein
>>
>> VAT No: DE 153 925 464
>> Register of Associations: No. 296, Amtsgericht Jena
>> Tax Number: 162/141/08228
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> 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
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
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to