Re: inter-applet communication problems
Eric Capps wrote:
Andrew Thompson wrote:
....
Did you say this is how 'other' JMol developers do it?
Are there any *working* examples on the net?
I am fairly sure that they do not. From what I can tell, other Jmol
developers usually first build changes into the JavaScript file and then
into the actual Jmol source, or both. I believe the purpose is to make
using Jmol in fairly advanced ways an easier task, and to increase what
you can do with it without getting too deep into the code.
The bottom line: it is possible to call methods in the Jmol applet from
JavaScript (the Jmol-new.js file).
It would be nice to see an URL where I can confirm
that for myself..
...It is possible to call those
JavaScript commands from a second applet in the same page
Wait a second. Lets make sure we're all
of the same understanding here.
While there are a number of ways to load a second
applet, there is only one applet element in that HTML.
I am not sure if that is what you intended, but performing
this experiment with the second applet element written in
the HTML *might* be a logical first step to what you are
attempting.
....(what I have
been doing!)
Without the 'working example', and without a clear
understanding of what you are trying to do (as
we determined earlier), it is still tricky for me to know
what should happen in your example, or what it
looks like when it fails (note that when I first visited the
page, there was no model onscreen - then I clicked
the link to the source file, and when I returned - 'hey
presto' ..the model appeared)
...So, shouldn't it be possible to bypass the JavaScript
altogether and call methods from the Jmol applet from the second applet?
I need to become clear on this 'second applet' yet.
Can you set up a test with HTML that includes both applets?
I don't think the Jmol-new.js has much to do with this, but if you like
I can highlight parts of it that may be significant and upload them on
that test page.
This email is very long!
Important note - this is not email, it is a post to a usenet
newsgroup. Email generally
- does not get archived by news servers,
- is not publicly searchable
- does not contribute to the bandwidth of subscribers to this group ;)
...and that makes me aware that we are still x-posting
this to both c.l.j.p. and c.l.j.h. I have set follow-ups to
c.l.j.programmer only.
Andrew T.