Dear Rick,
In FirstGlance in Jmol, I use the message command and
messageCallback(). (I do not use jmol.js.) I use message to mark
the beginning and end of blocks in the message stream. Then I use
those marks to parse out what I need.
You could do the same, something like this:
message begin comment
message Here is a two-line comment
message that I would like to display in a textarea.
message end comment
Then you need to write javascript to watch each line coming through
messageCallback(), and trap lines following begin comment, then
display in the textarea what was trapped when end comment comes along.
Perhaps someone else knows a simpler way?
-Eric
At 1/8/07, you wrote:
I have several anaimations where I would like to print comments to a
textarea controlled by the animation sequence. I have experimented with the
SetCallback(meassageCallback, javascript_function) which works well,
except that I get messages from everything (status, error, echos etc). Is
there a way to limit this to just the message commmands? (set loglevel does
not have the desired effect.)
Thanks, Rick Spinney
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users
/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
Eric Martz, Professor Emeritus, Dept Microbiology
U Mass, Amherst -- http://www.umass.edu/molvis/martz
Biochem 3D Education Resources http://MolviZ.org
See 3D Molecules, Install Nothing! - http://firstglance.jmol.org
Protein Explorer - 3D Visualization: http://proteinexplorer.org
Workshops: http://workshops.proteinexplorer.org
World Index of Molecular Visualization Resources: http://molvisindex.org
ConSurf - Find Conserved Patches in Proteins: http://consurf.tau.ac.il
Atlas of Macromolecules: http://atlas.proteinexplorer.org
PDB Lite Macromolecule Finder: http://pdblite.org
Molecular Visualization EMail List (molvis-list):
http://bioinformatics.org/mailman/listinfo/molvis-list
- - - - - - - - - - - - - - - - - - - - - - - - - - - */
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users