Skip to main content

How to add a "onClick" event to dojo.combobox

2 replies [Last post]
yummychen
Offline
Joined: 2008-04-07
Points: 0

Hi :

I have two combobox on a page.
The items of one combobox will be filtered by the other combobox's selected value.
So i need to change the items dynamically.
I need to add a "onClick" event to a dojo.combobox.
How can i do it?
I need help.
Thanks.

Message was edited by: yummychen

Message was edited by: yummychen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi YummyChen,

This blog entry by Jennifer covers this topic in detail. Find it here:

http://blogs.sun.com/jenniferb/entry/simple_interacting_comboboxes_in_a

Let us know if there are any parts that don't work.

-Greg

carlavmott
Offline
Joined: 2005-02-10
Points: 0

Looks like we're not getting a call back from _selectOption in the combobox. I was looking at this today and the wrapper is not getting notification that a new item has been selected. I see that for the spinner you over wrote a function and so you get the notification but you also handle updating the widget.

Carla