Believe it or not, we are almost there. This is very good news.

Frieda Reichsman wrote:

>
>> -------------------------------------------
>> Test 4: How can we address the applet?
>> -------------------------------------------
>>
>> js:document.jmolAppletX
>>
>>> js:document.getElementById("jmolAppletX")
>>
all we really need is the above.

js:document.applets[0]
js:document.applets["jmolAppletX"]
js:document.getElementsByTagName("jmolAppletX")

>>
> I do not know if what is above constitutes "anything useful" or not...
>
ALL excellent.

>> -------------------------------------------
>> Test 5: Can we access the applet functions?
>> -------------------------------------------
>>
>> For all the return something interesting, try adding ".getAppletInfo" 
>
js:document.jmolAppletX.getAppletInfo
js:document.getElementById("jmolAppletX").getAppletInfo
js:document.applets[0].getAppletInfo
js:document.applets["jmolAppletX"].getAppletInfo

> gives
> function getAppletInfo()
>
>
Excellent. All good.

>> -------------------------------------------
>> Test 6: Can we call any applet function?
>> -------------------------------------------
>>
>> Provided that worked,
>
>
Oh, yes, do Test 6.

> 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.
>
>> now try adding the empty parentheses. My 
>> experience is that on some Macs even if you find the applet, even if you 
>> can see that there is a function there, you still cannot actually run it.
>>
>>
>> js:document.getElementById("jmolAppletX").getAppletInfo()
>>
>> If none of these gives a nice message about the applet version and 
>> sourceforge, we're out of luck.
>>
>> -------------------------------------------
>> Test 7: Can we run a Jmol script?
>> ------------------------------------------
>
>>
>> Final mission: Find the equivalent way on your machine to do this:
>
>
> If Test 7 would help: What do you mean by "find the equivalent way to 
> do this"?


We are clear through Test 5. If Tests 6 or 7 fail, we will have to 
experiment to see what is wrong.

Definitely try these:

>> js:document.getElementById("jmolAppletX").scriptWait("background red")
>> js:document.getElementById("jmolAppletX").scriptWait("load caffeine.xyz")
>>
>> Look for any sort of 
>> console error or JavaScript error you can find.
>
>
> java.net.MalformedURLException: no protocol:
> http://www.stolaf.edu/academics/chemapps/jmol/docs/popupscript.js  Line 10
>
I have a feeling this is an internal Jmol error that we could track down.

Please also try:

js:useGetElement

does it say "true"?

Bob



> Thanks Bob,
> Frieda
>
> ///////////////////////////////////////////
>
>
> Frieda Reichsman, PhD
>
> Molecules in Motion
>
> Interactive Molecular Structures
>
> http://www.moleculesinmotion.com
>
>
> ///////////////////////////////////////////
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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



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

Reply via email to