Using onchange for a shuttle control
667390Apr 22 2009 — edited Apr 27 2009I have a page that contains a shuttle control and a second element I would like to update as things are moved left and right on the shuttle. The Javascript to do the update based on the contents of the shuttle is no problem. What I am having trouble with is calling my Javascript function when the shuttle changes.
Essentially, I'd like an onchange event to fire every time an element is moved left or right in the shuttle, but I can't find any way to do that. Using the onchange event in the HTML Form Element Attributes field of the shuttle doesn't seem to work properly.
The workaround I've come up with is to call my function in the onclick and ondblclick events from the HTML Table Cell Attributes field of the shuttle. That's not ideal, because it calls my function on every click or double-click in the TD that contains the shuttle, whether or not that click actually moves an element in the shuttle.
Is there a better way to do this?