Re: [Jmol-users] message command

2007-01-09 Thread Hens Borkent
Dear Rick, Eric, What the simpler solution is I don't know, but I can tell what I do (since a long time, before jmol.js emerged, so it could be a bit outdated...): Write your comments in javascript in a data array data[1], data[2] where the index corresponds to the frame number it is related

[Jmol-users] message command

2007-01-08 Thread rspinney
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

Re: [Jmol-users] message command

2007-01-08 Thread Angel Herraez
Hi Rick I have no experience with callbacks, but your problem seems exactly what a recent function in Jmol.js does. I just added three days ago the documentation for it, following Bob's explanation, into Jmol.js doc webpage: http://jmol.sourceforge.net/jslibrary/#jmolSetCallback look for

Re: [Jmol-users] message command

2007-01-08 Thread Eric Martz
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