Bob,

Per my note yesterday, you are correct! But I had to find out why MSIE 
choked on this approach for my page. I run all jmolScript through a 
function on my page to allow me to add some useful macros before running 
jmolScript(). Out of ignorance, I named this function execScript(). MSIE 
has a native window.execScript() method. Chrome does also. Firefix does 
not. Evidently, Chrome requires the full window.execScript(), and MSIE 
does not - window is default. Consequently, in MSIE I had a function 
firing on every load. I didn't do anything. It didn't even throw an 
error. But for some reason that I won't even bother to understand, it 
reared its head when I tried to run another JavaScript function via Jmol 
JavaScript.

Otis

On 6/14/2010 1:02 PM, Robert Hanson wrote:
> I assert:
>
> jmolApplet(300,'.....;javascript "appletLoaded(1)" ')
>
> where "1" might change with applets, is the definitive way to do this. 
> You can put anything in there you want, if you wish to inform the page 
> WHICH applet is loaded.
>
> Prove me wrong!
>
> Global arrays are tricky because they are common to all applets within 
> the browser, not just within a given page.
>
> The "appletInfo.registry" property also indicates all applets loaded 
> -- not just for the current page, but for all pages. The long number 
> is a random number that is associated with a specific page. The 
> current page's ID is found by checking _jmol.params.syncId.
>
> jmolGetPropertyAsArray("appletInfo.registry","")
>
> appletInfo.registry={}
> appletInfo.registry.jmolApplet0__246834263019686__="JmolApplet[panel0,0,0,350x350,layout=java.awt.FlowLayout]"
>
> Bob
>

-- 
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

Reply via email to