It's all about the answers!

Ask a question

HELP NEEDED IN HANDLING ONSELECT EVENT OR ONCHANGE EVENT


MAPAGILE MAPAGILE (81225) | asked Jan 29 '09, 6:09 a.m.
I AM DEVELOPING A PLUG IN WHICH ON SELECTION OR CHANGE OF VALUE IN DROP DOWN BOX, ANOTHER DROPBOX OR OTHER INPUT IS NEEDED TO BE DISPLAYED.

I HAVE CREATED A DOJO ATTACHPOINT TO THE DROPBOX.

I TRIED TO CALL THAT USING DOJO LISTENER with EITHER "onselect" or "onchange"EVENT.

THERE IS NO RESPONSE TO EITHER EVENTS.

PLZ HELP ME WITH THAT.

IS THERE ANY OTHER METHOD THAT CAN WORK.

One answer



permanent link
Curtis d'Entremont (1.3k3) | answered Jan 29 '09, 2:40 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
You're referring to the <select> box right? The onchange event should work. We do it like this in our custom widgets:

this.connect(mySelect, "onchange", this._handleOnChange);

and it seems to work fine. I suppose you could also attach the event in your template as well. Can you provide a snippet of how you're doing it ?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.