RE: [Jmol-users] applet -- callback brainstorming

2006-02-16 Thread Otis Rothenberger
Developers- Thanks for exploring the callback options. In answer to the questions posed, >a) Do you implement callbacks? If so, which ones? I use pickcallback to identify atoms for color changes in lecture graphics. I also use the pickcallback function to trigger various JS driv

Re: [Jmol-users] applet -- callback brainstorming

2006-02-16 Thread Garnier Nicolas
AS A USER, WHAT DO YOU WANT? a) Do you implement callbacks? If so, which ones? yes message and pickcallback. message callback to show messages in textarea and pickcallback to link applet with an alignement or to launch a cgi script on residue selection. see at http://pig-pbil.ibcp.fr/cgi-bin/mag

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Miguel
> It's certainly an interesting challenge -- the goal, to provide a > "snapshot" of the state of the system. [snip] > > Let's see what Miguel thinks. Miguel is explicitly sitting on the sidelines to watch this discussion. At one extreme, RasMol supports this in a very simplistic way ... select ea

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Bob Hanson
[EMAIL PROTECTED] wrote: The same approach could also be used to build the script for a full dump. Instead of using the selected atoms, the atoms with the same properties could be grouped in a first step. Then the described approach could be used for each of these groups. I know that I hav

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread rhuehne
Bob Hanson wrote: Rolf Huehne wrote: unreliable. If the interface could recognize any selection change and then ask Jmol for the current selection this would simplify that a lot and make it much more reliable. The challenge here would be providing anything other than a purely atom-by-atom sele

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Bob Hanson
beats me, the code couldn't possibly have let it, as the call wasn't there!! Let's not pursue it Rolf Huehne wrote: Bob Hanson wrote: because I just fixed it. I should have written "Why did it still work in Firefox with Linux?", because it already worked there even hours before you to

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Rolf Huehne
Bob Hanson wrote: > because I just fixed it. I should have written "Why did it still work in Firefox with Linux?", because it already worked there even hours before you told in your response to Dan that you will look into it. Regards, Rolf > > [EMAIL PROTECTED] wrote: > >> Quoting Bob Hanson <[E

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Bob Hanson
because I just fixed it. [EMAIL PROTECTED] wrote: Quoting Bob Hanson <[EMAIL PROTECTED]>: Thanks, Dan. Well, I see I "broke" right-mouse click on the prototype. It's not a sync issue, because it's broken even with just one applet on a page and no JavaScript. I'll look into it. But if you

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Bob Hanson
Rolf, a few comments interspersed below, and more to come after I synthesize what the responses have been to these questions. Rolf Huehne wrote: b) What WOULD you use if you had it available? What currently is missing in Jmol is the possibility to dump the current display state (renderin

Re: [Jmol-users] applet -- callback brainstorming

2006-02-15 Thread Rolf Huehne
Hi Bob, I highly appreciate your efforts regarding this issue. I have not had the time yet to think more deeply about this. So below you will find only some of my first thoughts. Bob Hanson wrote: > a) Do you implement callbacks? If so, which ones? Currently I only implemented message callback t

Re: [Jmol-users] applet -- callback brainstorming

2006-02-14 Thread rhuehne
Quoting Bob Hanson <[EMAIL PROTECTED]>: Thanks, Dan. Well, I see I "broke" right-mouse click on the prototype. It's not a sync issue, because it's broken even with just one applet on a page and no JavaScript. I'll look into it. But if you broke it, why does it still work in Firefox with Lin

Re: [Jmol-users] applet -- callback brainstorming

2006-02-14 Thread Bob Hanson
Thanks, Dan. Well, I see I "broke" right-mouse click on the prototype. It's not a sync issue, because it's broken even with just one applet on a page and no JavaScript. I'll look into it. Dan Kirshner wrote: WinXP, Firefox 1.5. First time: molecule didn't display in top-right applet (althoug

Re: [Jmol-users] applet -- callback brainstorming

2006-02-14 Thread Rolf Huehne
Bob Hanson wrote: > More reports, please. If you have access to JavaScript console or Java > Console and it's not working, please check there. It might be just a > communication issue. > At the moment I have no time for more (but I'll check more detailed later), just the javascript error message f

Re: [Jmol-users] applet -- callback brainstorming

2006-02-14 Thread Dan Kirshner
WinXP, Firefox 1.5. First time: molecule didn't display in top-right applet (although click and drag there did rotate the other three!). Second time: all four sync'd. Both times: no right-click effect, no JavaScript Console messages, no text below applet (except "Disclaimer" link). Bob Hanso

Re: [Jmol-users] applet -- callback brainstorming

2006-02-14 Thread Bob Hanson
More reports, please. If you have access to JavaScript console or Java Console and it's not working, please check there. It might be just a communication issue. Rolf, what do you see on those other pages? Is the polling working there? My guess is these pages mess up with identifying the applet

Re: [Jmol-users] applet -- callback brainstorming

2006-02-14 Thread Rolf Huehne
Bob Hanson wrote: > OK, I'm making my way through the resonses here. In the mean time I > have implemented (another) prototype that I would like people to take > a look at. See the files in > > http://www.stolaf.edu/people/hansonr/jmol/test/json > > in particular: > > http://www.stolaf.edu/people/h

Re: [Jmol-users] applet -- callback brainstorming

2006-02-12 Thread Bob Hanson
OK, I'm making my way through the resonses here. In the mean time I have implemented (another) prototype that I would like people to take a look at. See the files in http://www.stolaf.edu/people/hansonr/jmol/test/json in particular: http://www.stolaf.edu/people/hansonr/jmol/test/json/json.htm

Re: [Jmol-users] applet -- callback brainstorming

2006-02-12 Thread Dan Kirshner
I'm quite eager to have a simple version of this functionality. Thanks! a) Do you implement callbacks? If so, which ones? No, though I'd like to (once I understood how it works -- your mechanism I think I understand already!) b) What WOULD you use if you had it available? I want to kno

Re: [Jmol-users] applet -- callback brainstorming

2006-02-11 Thread Paul Pillot
Bob Hanson a écrit : AS A USER, WHAT DO YOU WANT? a) Do you implement callbacks? If so, which ones? With chime, I use messagecallback and pickcallback. I use message callback to get informations such as : model sequence, names of residues or chains in a selection, end of a script, number o

Re: [Jmol-users] applet -- callback brainstorming

2006-02-11 Thread Hens Borkent
Hi Bob, AS A USER, WHAT DO YOU WANT? a) Do you implement callbacks? If so, which ones? AnimFrame to synchronize other Javascript functions with an animation Pick to identify atoms, in particular in our molecule editor Message to return measurements, now largely replaced by monitors though

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Miguel
> I'm sad that both, RasMol and Jmol didn't support the PDB > format completely e.g. ^insCode versus ;altLoc > but I count on you and Jmol which is evolving and will make it some day, > and is relay a great applet. > ) > Regards, Jan Jan, As you know that I have tried several times to add altLoc

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Dan Kirshner
I'm quite eager to have a simple version of this functionality. Thanks! a) Do you implement callbacks? If so, which ones? No, though I'd like to (once I understood how it works -- your mechanism I think I understand already!) b) What WOULD you use if you had it available? I want to know what

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Jan
Bob Hanson wrote: ... I use callbacks in RasMol to query e.g. which amino acids are in 3.2 A distance to a hetero component (echo "load pdb inline\nselect within(3.2, [LIP]3) and not [LIP]3\nshow selected group\nexit\n";cut 1imb.pdb) | rasmol -nodisplay | evaluateMakeRasMolScriptFromIt.pl

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Bob Hanson
Jan wrote: we already have monitor 111 112 113 why not getProperty("measure","[LIP]3:A.O5","[LIP]3:A.O6","[LIP]3:A.O7") sure, we'll do something like this. a monitoring function on your callback.htm monitor: measurementsChange works for me, but I miss the corresponding e.g. "monitor 1 2

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Jan
Bob Hanson wrote: Jan wrote: I don't see a difference whether I say monitor 2087 2088 or monitor ([LIP]3:A.O5) ([LIP]3:A.O6) Oh, sure. OK. I don't know that we are headed that way wth the monitor command, because there are some programming issues with putting two atom expressions in the sam

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Bob Hanson
Jan wrote: I don't see a difference whether I say monitor 2087 2088 or monitor ([LIP]3:A.O5) ([LIP]3:A.O6) Oh, sure. OK. I don't know that we are headed that way wth the monitor command, because there are some programming issues with putting two atom expressions in the same command -- nothin

Re: [Jmol-users] applet -- callback brainstorming

2006-02-10 Thread Jan
Bob Hanson wrote: ... b) What WOULD you use if you had it available? the monitor/measure command, especially if there is no need for atom numbers but select expressions could be used Hmm. Usually for those you need an ordered list, right? But one could imagine following the bonding in some

Re: [Jmol-users] applet -- callback brainstorming

2006-02-09 Thread Bob Hanson
Jan wrote: Bob Hanson wrote: ... AS A USER, WHAT DO YOU WANT? a) Do you implement callbacks? If so, which ones? I only use pickCallback to monitor user picking and messageCallback to evaluate current orientation. Great, those are easy. Check out http://www.stolaf.edu/people/hansonr/jmol

Re: [Jmol-users] applet -- callback brainstorming

2006-02-09 Thread Bob Hanson
Timothy Driscoll wrote: On Feb 9, 2006, at 2:07 p, Bob Hanson wrote: AS A USER, WHAT DO YOU WANT? as a resource developer, I want a way to ask the applet for the status of something, have the applet respond in some logical syntax, and then do with that info whatever I please. for example

Re: [Jmol-users] applet -- callback brainstorming

2006-02-09 Thread Timothy Driscoll
On Feb 9, 2006, at 2:07 p, Bob Hanson wrote: I'm looking at the Jmol callback issue. I propose that there be a fundamentally different mechanism that does not rely upon callback functions (but could be backward- compatible with these if desired). I think this is an excellent idea. Migue

Re: [Jmol-users] applet -- callback brainstorming

2006-02-09 Thread Jan
Bob Hanson wrote: ... AS A USER, WHAT DO YOU WANT? a) Do you implement callbacks? If so, which ones? I only use pickCallback to monitor user picking and messageCallback to evaluate current orientation. b) What WOULD you use if you had it available? the monitor/measure command, especially if

Re: [Jmol-users] applet -- callback brainstorming

2006-02-09 Thread Angel Herraez
On 9 Feb 2006 at 13:07, Bob Hanson wrote: > a) Do you implement callbacks? If so, which ones? I have not used callbacks > b) What WOULD you use if you had it available? > c) What sort of information (exactly) are you looking for? The only application I envisage right now is the ability to get