Bob Hanson sent (2004.05.21 at 7.21a [-0500gmt]) :
>Miguel,
>
>I'd like to switch the following app to jmol. Would you please take
>a look at it and tell me if there is anything it can do with Chime
>that can't be done with jmol?
>
>http://www.stolaf.edu/people/hansonr/jmol/pi/
>
I took a look at the above url on Mac NC 4.79. all of its features can
be accomplished in Jmol, with the possible exception of "copy to
clipboard" (not sure what that is designed to do; it doesn't work OMM).
I don't know if "select *" works, though I would not be surprised (just
don't have a chance to test it right now). but one can use "select all"
in any case.
>Note that this was written in the era when both IE and Netscape had
>dropped "live connect" so it uses a hidden frame with code such as
>
><embed type=application/x-spt hidden=true width=10 height=10
>button=push target=C0_42203168433687915 script="select *;color
>group" immediate=1>
>
>to do all the driving.
>
>Q: Is there anything like this in jmol that avoids Live Connect?
>
you can send the commands to Jmol using liveconnect, which works fine in
almost all modern browsers - the notable exception is OSX, where only
Safari 1.2 has liveconnect support for now.
no hidden layer/frame is necessary - just use a direct javascript call
like this:
document.myjmol.script("select all;color blue;spacefill 50%");
but if you really want to use the hidden frame (aka the IMBIF method),
here is mine; season to taste:
/*
function writeIMBIF(script)
{
var immediate_button;
var target;
immediate_button =
"<applet " +
"code='JmolAppletControl' " +
"archive='JmolApplet.jar' " +
"codebase='..\/..\/appletbase' " +
"height='5' width='5' mayscript='true'>" +
"<param name='target' value='demo3d' \/>" +
"<param name='type' value='immediate' \/>" +
"<param name='script' value='" + unescape(script) + ";' \/>" +
"<\/applet>";
if (
(getClientBrowser() == "ns") &&
(getClientBrowserVersion() < 5))
{
target = document.layers[document.layers.length-1];
target.document.open();
target.document.write(immediate_button);
target.document.close();
}
else
document.getElementById("imbif").innerHTML = immediate_button;
}
*/
>Q: What's the history/future of Live Connect?
>
hopefully it will continue to enjoy support across vendors. Apple seems
to be behind the times with OSX, but I am optimistic.
hope that helps,
tim
--
Timothy Driscoll
molvisions - see, grasp, learn.
<http://www.molvisions.com/>
usa:north carolina:wake forest
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers