AngelH and BobH have spent a bit of time today setting me straight on how the
product should be used to implement the following scenario:
**************************************************************************************
1) we're in Frame1 of a portal that has two other frames in it: FrameA and
FrameB.
2) A query in Frame1 against a certain database brings back two sets of
specifications for Jmol, say:
a 1hru, A, 123-145
b) 2eqa, A, 144-167
3) Via "client-side eventing" at the portal level , the portal passes the
parameters in (a) to JMol and Jmol runs in FrameA to display the "partial"
structure view requested (with rotate capability, same as in interactive
JMol;
4) At the same time , the portal passes the parameters in (b) to JMol and
Jmol runs in FrameB to display the "partial" structure view requested (with
rotate capability, same as in interactive JMol;
*************************************************************************************
AngelH posted his reponses to the jmol-users list, but BobH posted his to
FeatureRequest when he closed the thread there that started this discussion.
So for the benefit of listserv members as ignorant as I am, I wanted to repost
BobH's response here:
********************************************************************************
If
http://strucclue.ornl.gov/cases/spcl/1gtr1f7u.gif
is an example of the sort of thing you are interested in, but live,
then you can do that in about 15 minutes of programming with Jmol.
This sort of thing is done all the time. Definitely use Jmol.js to
set up the two applets. It will take about four lines of JavaScript.
If you know how to do it, using Ajax is the way to go for communicating
with your server. Just have the server send the Jmol script, and have the
page JavaScript deliver it to one or the other applet, as directed by the
server.
The script, as Angel has pointed out, is basically trivial. Just a load
command along with a few commands to generate the cartoon the way you want
it and to display just the part you are interested in.
You should consider using the SYNC command to allow mouse motion on one
applet to control the orientation of the other. This is very slick.
If the PDB files are not on your server you can either use the signed
applet, JmolAppletSigned.jar, or you can "relay" the structures through
your server and just use JmolApplet.jar, which is not signed.
Bob Hanson
*********************************************************************************************
Also, note to Angel:
Three years ago, I would have been able to contract your time immediately.
Now, not so much, unfortunately. Everything I'm doing at
http://strucclue.ornl.gov is "pro bono" because I would
like the site to grow if for no other reasonm than as a tribute to Drs. Fresco
and Lesk - two giants
in the field who have devoted a lot of time "pro bono" over the past 15 years.
Plus, it's
wonderfully rewarding to publish a "case" at the site and get comments from the
original
crystallographer to the effect that the novel StrucClues SCILD methodology has
hit on two narrow
portions of a protein's structure that are functionally and/or structurally
critical.
Before begging for your time, I want to investigate a little to see if there is
still a way I can buy it.
But if nothing pans out, then please expect an email saying "please - would you
do the
scripting that I can embed in the SAP portal environment?"
Very best regards
djh
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users