PDA

View Full Version : combocox value change select not fired



nadeemshafi9
22 May 2009, 8:44 AM
Hi guys

i change the value of my combobox after its outputed and it already has a listener which works when you change teh value yourself, but it dosent fire when i change the value dynamicaly.

any ideas

thanks guys

tryanDLS
22 May 2009, 9:19 AM
setValue does not fire the change event - it is only fired when the field loses focus via onBlur. select is only fired when the UI is clicked to select an entry.

nadeemshafi9
22 May 2009, 12:03 PM
thanks for teh response, yes so thats cleared up for me, i mamaged to do the job by setting a variable to 0 and saying if teh value of teh checkbox hidden is different from 0 then do the stuff, ii need to reconfigure a form on page load and it has a dynamicaly built structure based on the first select box, so when i loaded the page i set the value of teh checkbox but the event that usualy builds the form didnt fire so i what i done is check against a dummy 0 var wich will always amount to true.