One of the problems with frames seems to be the timing when the Jmol 
global object and the particular JSmol object are created in each frame.
For example, when using commands like Jmol.jmolButton in the text frame it 
fails to create the button because the JSmol object in the other frame is not 
yet there. Reloading the text frame once I can see the JSmol panel makes 
the button show up, but it is not operative, for whatever reason.

Some testing
http://biomodel.uah.es/angel/frames/frameset1.htm
suggests that you can only use Jmol.script, which is triggered by the user 
and so the JSmol object has had time to be generated.

Finally, I found a workaround by redefining the old jmolButton function, so it 
will insert an <input type=button> that will run a Jmol.script command
See the url above for hints



------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to