Sometimes it's not what you think it will be....
I have found a common solution to the problems relating to NN7.2/Windows that I have observed with versions after about 10pre13. I have no idea what the exact problem really is -- something to do with threads and perhaps a way that Jmol is returning values to functions is different from before. Thus, the solution below is a hack. But I think all my pages are working properly, including animation, movies, show file, etc.
Here is the issue:
We have an applet that includes messagecallback="myfunction"
Link on page is set to execute a javascript command, for example:
<A href="javascript:document.jmol.script('cpk 100%')">spheres</a>THIS FAILS WITH NN7.2/Win, crashing NN and requiring a CTRL-ALT-DEL style ending of the Netscp.exe process. It does not seem to be a problem when there is no messagecallback. It does not appear to be a problem with IE/Win at all.
However, the following works fine:
<A href=
"javascript:void(setTimeout('document.jmol.script(\'cpk 100%\')',1))"
>spheres</a>That is, instead of issuing the .script() command directly, if the JavaScript starts a new thread with a 1 millisecond delay that executes the script, then all is well.
If possible, we should figure out what is happening and fix it from within Jmol. Was there a change in the way Jmol returns values with the script() command? I know I was suggesting a change there.
Starting new threads with setTimeout() can really be a headache.
Bob Hanson
Miguel wrote: > Bob wrote: > > >>Still a problem with 10pre23: > > > Bob, > > My last comment was: > > >>>>Comment By: Miguel (migueljmol) >>> >>>Date: 2004-12-13 10:59 >>> >>>Message: >>>Logged In: YES >>>user_id=1050060 >>> >>>Running gunzip on movie.pdb generates an error: >>> >>>I renamed movie.pdb to movie.pdb.gz in order to unzip it. >>> >>>[EMAIL PROTECTED] rhanson]$ gunzip movie.pdb.gz >>> >>>gunzip: movie.pdb.gz: invalid compressed data--crc error >>> >>>gunzip: movie.pdb.gz: invalid compressed data--length error >>>[EMAIL PROTECTED] rhanson]$ > > > > So, it looks like to me that the file has become corrupted. > > Q: Can you check this on your end? > > > Miguel > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Jmol-developers mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jmol-developers
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers
