Miguel and Rick, for those of us who LIKE the way JavaScript interacts with applets,
please continue to allow message callbacks to receive communication such as this. It is
far easier and faster (for me, at least) to customize JavaScript than rebuild applets.
Thanks,
Bob
Miguel wrote:
Shravan is working for me on an applet for displaying jcamp-dx files.
Unfortunately, he is not a chemist (but a good JAVA programmer) and there
may be some terminology issues. Chime is the example I used for how the
jcamp display should work. We have a working applet (current version cam
be
seen at
http://undergrad-ed.chemistry.ohio-state.edu/Jspec-2.0/applet.html).
We are fixing a few bugs and then will release it to the world. (Note this
is Henry Rzepa's Jspec applet updated).
Excellent
I would also like to replicate Chime's ability to use interactive scripts
between one Chime display of the jcamp file and a second display of a
molecule (there are examples of this at MDL's web site for Chime). The
script is contained in the jcamp file and defines "hot zones" in the
spectra. When a user clicks in the hot zone the script is sent to the
molecule display window and changes the display or starts/stops an
animation. The problem we are having is trying to determine how to pass
the
script from the jcamp viewer and Jmol which I would like to use for
displaying the molecule. Any ideas?
Rick,
I have been quite busy and have not had a chance to look into this yet.
Nevertheless, I remain quite confident that I can give you a Java API
which will allow your applet to send text scripts directly to Jmol for
evaulation. Don't worry about my piece, just keep your student moving
forward.
Have your student keep working on other aspects of the project ... try to
get everything else done.
I recommend that you consider the following:
Have your student build a DummyJmolApplet that accepts script text. The
implementation would simply be a text window that displays the text of the
last script that it was given. You could then build a web page that
included your JcampApplet and the DummyJmolApplet. Events in your
JcampApplet could/should trigger the display of the appropriate script
text in the DummyJmolApplet.
I estimate that this dummy JmolApplet can be built in less than 250 lines
of code. Depending upon the development skills and experience of your
programmer this might take two hours ... or might take two weeks.
The only tricky part for your student is going to be establishing
communication between the two applets. Tell your student to assume one
DummyJmolApplet per page and to use a static method and a static class
member. (Extra credit for your student: try to use 'synchronized' in order
to prevent race conditions).
Meanwhile, I assure you that this is high on my list of things to do.
Miguel
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&opÌk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users