Ops sorry I copied the wrong line, it is:
jmolSetCallback("MessageCallback","msgFn");
Which does not work either... So I want that the selected residue appears
when I click on a jmol checkbox. Please check my example page:
http://bl210.caspur.it/MODEL-DB/TEST/testpage3.php
2011/9/20 Paul Pillot <[email protected]>
>
> Le 20 sept. 2011 à 12:26, Daniel Carbajo a écrit :
>
> > I am trying the following (which does not work):
> >
> > javascript function:
> > function msgFn() {
> > var x = jmolScriptWait('print script("show residue")');
> > var t = '\n' + document.getElementById('msg').value;
> > document.getElementById('msg').value = x + t;
> > }
> >
> >
> > as initializing the applet:
> > jmolSetCallback("MeasureCallback","distFn");
> >
> There is something weird here : you trigger the distFn() function when user
> make a measure. But you've defined au msgFn() function. So it can't be
> triggered by the measure Callback.
> You have to be clear about when you want to update the selected residues
> list. Is it when a user makes a measure ? is it when the user clicks on a
> link or a button ?
>
> You can also use your browser to debug your javascript to see if your
> functions work as expected. For example, you can open the javascript console
> and type in : msgFn()
> you'll see if the list of residues is correctly displayed.
>
> > I would also like to include the temperature factor of the residue's
> C-alpha... any clue?
> Just a clue... print {6}.temperature will provide you with the mean
> temperature factor for all residues numbered 6. There is a way to get the
> list for each residue but I haven't done that for a while and I can't
> remember what the proper syntax is.
>
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users