I did the same tests as Frieda did on Safari with the same results,
but also on FireFox. For interest I'm giving the FF replies as well
>
> > -------------------------------------------
>> Test 2: Does my test work at all?
>> -------------------------------------------
>>
> > js: 1+2
>I do get the alert that says "3"
also on FF
> > -------------------------------------------
>> Test 3: Is the document found?
>> -------------------------------------------
>>
>> js:document
>>
>> You should get something like "object HTMLDocument"
>
>yes, I get exactly that in an alert, in square backets.
also on FF
> >
>> -------------------------------------------
>> Test 4: How can we address the applet?
>> -------------------------------------------
>>
>> js:document.jmolAppletX
>
>I get
>[object OBJECT]
FF gives [object HTMLAppletElement]
> >
>> js.document["jmolAppletX"]
>
>I get not response.
Saf: js console: java.net.MalformedURLException: no protocol line 10
FF: no response either (nothing in console)
> > js:document.getElementById("jmolAppletX")
>
>I get
>[object OBJECT]
FF gives [object HTMLAppletElement]
> > js:document.applets[0]
>
>I get
>[object OBJECT]
FF gives [object HTMLAppletElement]
> > js:document.applets["jmolAppletX"]
>
>I get
>[object OBJECT]
FF gives [object HTMLAppletElement]
> > js:document.getElementsByTagName("jmolAppletX")
>
>I get
>[object NodeList]
FF gives [object HTMLCollection]
> > -------------------------------------------
>> Test 5: Can we access the applet functions?
>> -------------------------------------------
>>
>> For all the return something interesting, try adding ".getAppletInfo"
>
>js:document.jmolAppletX.getAppletInfo
>gives me
>function getAppletInfo()
>js.document["jmolAppletX"].getAppletInfo
>gives me no response
FF: no response either
Saf: js console: java.net.MalformedURLException: no protocol line 10
>js:document.getElementById("jmolAppletX").getAppletInfo
>gives
>function getAppletInfo()
FF gives function getAppletInfo() {[native code]}
>js:document.applets[0].getAppletInfo
>gives
>function getAppletInfo()
FF gives function getAppletInfo() {[native code]}
>js:document.applets["jmolAppletX"].getAppletInfo
>gives
>function getAppletInfo()
FF gives function getAppletInfo() {[native code]}
>js:document.getElementsByTagName("jmolAppletX").getAppletInfo
>gives
>undefined
FF gives undefined also
> > -------------------------------------------
>> Test 6: Can we call any applet function?
>> -------------------------------------------
>>
>> Provided that worked,
>
>since I did not get anything about "native code" I assume it did NOT
>work, and will not do Test 6. Let me know if I should.
Agreed. Tried on FF and got a Jmol Applet version message.
The java.net.MalformedURLException is also thrown when one clicks on the links.
Of course, Firefox *does* work with the demos on Mac OS X.
David
--
_______________________________________________________________
David P.Leader, Biochemistry and Molecular Biology
Davidson Building, University of Glasgow, Glasgow G12 8QQ, UK
Phone: +44 41 330-5905 http://doolittle.ibls.gla.ac.uk/leader
_______________________________________________________________
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users