I have a series of cascading selects, now shown listbox fashion with several rows visible instead of dropdown style. Using onclick events I'm happily clicking up and down my hierarchy with the mouse.
I'd also like to support keyboard navigation, so I hooked up onchange to the very same event handlers. That works fine for keyboard but when I mouse click a change both events fire and all my AJAX stuff runs twice.
I can't take out onlick and rely on onchange because ... take a deep breath ... as you click on any part of the hierarchy two things happen: the next listbox fills with child nodes AND the bottom half of the page shows the object at that level. Sometimes I click in box1, box2, box3, and box4 and view the lowest level leaf. Then I click back on the current row in box2 and want to see the object at that level again. onclick does it perfectly but onchange doesn't fire.
Any thoughts on supporting both without running twice?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi