-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi :
I want to disable/enable an event (onChanging in this case). I am implementing a search where I want the user to give an option to search either as he types in a text box or after he types and click a button. If user chooses the later I want that the onChanging should not fire otherwise it should.
How can I get that ?
regards
Devinder
You could store the onChanging event in a function and use zscript to change the textbox's onChanging value to be null, or to be the function.
Also you could do implement an if statement in the onChanging event (if the latter is chosen the function won't fire, if it's not chosen then the funciton will fire)
Not sure if these are the best solutions, but they should work
Asked: 2009-05-07 17:13:11 +0800
Seen: 200 times
Last updated: May 19 '09