Phil, instead of an alert, use an anchor tag that we can click on after the
applet loads. That's the only valid test here. What again were you trying to
test?
Bob
On Fri, Jul 23, 2010 at 10:52 AM, Robert Hanson <[email protected]> wrote:
> Again, never do this! (same reason, and in MSIE the applet will not ever be
> loaded before the prompt returns)
> UseCommandThread probably shouldn't be played with, either.
>
>
>
> <script type = "text/javascript">
>
> jmolInitialize("../jmol","JmolApplet.jar");
> //jmolInitialize("../jmol","JmolApplet.jar");
> jmolSetCallback("UseCommandThread","true");
> </script>
>
>
>
> <script>
> var script = 'load Structures/molecule4.pdb';
> jmolApplet([500,500],script);
> </script>
>
> <script>
>
> alert("Load another structure");
> var script2 = 'load Structures/chlorophyll.pdb';
> jmolScript(script2);
> </script>
>
>
>
>
> On Fri, Jul 23, 2010 at 10:12 AM, Philip Bays <[email protected]>wrote:
>
>> I have now loaded three files onto my campus server: ST1.html, ST2.html,
>> and ST3.html. The files are identical except that I have commented out, or
>> in, various script lines.
>>
>> ST1: A simple load of a molecule into a jmol applet followed by an alert,
>> dismissal of which allows another molecule to be loaded.
>>
>> ST2: Same as ST1 except that I have added:
>> jmolSetCallback("UseCommandThread","true");
>>
>> ST3: Same as ST1 except that I now use the signed applet.
>>
>> My Observations:
>> All three files work fine with all browsers on a PC and all non-Mozilla
>> browsers on the Mac.
>>
>> I am looking at Firefox (the most important), SeaMonkey, and Camino of the
>> Mozilla implementations.
>>
>> For Firefox -- browser and java cache cleared:
>> When you run ST1, the first structure loads fine, the second gives a file
>> access error. Both
>> structure files are located in the same place, and I have
>> demonstrated the same results
>> if I put the structure files into the jmol directory. It is not a
>> file location issue.
>> ST2 and ST3 work fine.
>> If you run either ST2 or ST3 followed immediately by ST1, then ST1 works
>> fine. (caching issue?) But
>> if you close firefox, without clearing either caches, you are back to
>> the same issue with ST1.
>>
>> SeaMonkey works the same as Firefox.
>>
>> Camino
>> For all three files, camino never displays the applet for the first
>> structure. The java console tells me the
>> applet has been initiated and the molecule has been loaded, but neither
>> is displayed.
>> The second structure is displayed in an applet of SP2 and SP3, but the
>> access error is displayed for SP1.
>>
>> URL's, particularly for a person using a Mac.
>>
>> www.saintmarys.edu/~pbays/JStest/HTMLFiles/ST1<http://www.saintmarys.edu/%7Epbays/JStest/HTMLFiles/ST1>
>> (or ST2 or ST3)
>>
>> Having said all of this, I just downloaded the latest release of jmol and
>> it does not seem to work for any of these, but I do not have time at the
>> moment to check it out for sure.
>>
>> Phil
>>
>>
>>
>> J. Philip Bays
>>
>> Professor of Chemistry
>>
>> Science Hall 172
>>
>> Saint Mary's College
>>
>> Notre Dame IN 46556
>>
>> (574) 284-4663
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> 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
>
--
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
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users