Ok, some suggestions for the popup:
The relevant code is in JmolPopup.htm within function getState()
It says
opener.jmolGetPropertyAsString("stateInfo")
jmolGetPropertyAsString() takes a target applet ID as its 3rd parameter,
http://jmol.sourceforge.net/jslibrary/index.en.html#jmolGetPropertyAsString
so I would
1. set a javascript variable in the mother page which value is set depending
on your choice ("left" or "right" in your example). Let's say that variable is
called whichJmol
2. modify the JmolPopup.htm source like
function getState(){
if (theScript) {
return theScript
}
if (!opener) {
alert("The page that opened this pop-up window is not available.")
return ""
}
var t = opener.whichJmol ? opener.whichJmol : "0";
return opener.jmolGetPropertyAsString("stateInfo","", t)
}
I think that should do it.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users