maybe you could also assign an onBlur event to the Jmol applet and so
when Jmol goes out of focus, the onBlur event fires, assigning a
keystroke capture back to the element you want. Maybe not super elegant,
but could fix for the moment.
Martin
On 25.06.12 21:31, Otis Rothenberger wrote:
Thanks Martin,
I wasn't sure how to quickly assign the onBlur to the applet itself without
editing Jmol.js, but your suggestion gave me an idea that works on Firefox and
MSIE. I'm trying to get the keystroke capture back to the page after an model
is clicked. Using your thought, I used
maybe you could also place the applet within a div, and assign the
onblur to the div
Martin
On 26.06.12 13:33, Otis Rothenberger wrote:
Thanks Martin,
I wasn't sure how to quickly assign the onBlur to the applet itself
without editing Jmol.js, but your suggestion gave me an idea that
Dear All,
I would like to draw contacts between a residue and what is shown in the
applet. This command does not seem to work for me. Anything wrong ?
jmolCheckbox('contact {~res} {visible} clash','','Clashes
','','miniApplet_clashes','Show/hide clashes');
Thanks for help,
Pascal
-
Martin said:
maybe you could also place the applet within a div, and assign the
onblur to the div
I'm not sure that would work. But the applet itself has an ID
--either automatically assigned by Jmol.js or equivalent, or assigned
by you-- and you could define (on page load) the onBlur
Great!
What version of Jmol are you using?
On Tue, Jun 26, 2012 at 10:41 AM, Pascal Auffinger
p.auffin...@ibmc-cnrs.unistra.fr wrote:
Dear All,
I would like to draw contacts between a residue and what is shown in the
applet. This command does not seem to work for me. Anything wrong ?
6 matches
Mail list logo