Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ivy on Aug 12, 2008 02:38
open dhtmlx forum
dhtmlxcombo event

hi

i have a problem on following codes. i need a onChange event call another ajax function, but get a alert on the attachEvent line, it said object can not support the property or method.

var z2=dhtmlXComboFromSelect("aaa","bbb");
z2.enableFilteringMode(true);
z2.loadXML("./common/brand.jsp");
z2.attachEvent("onChange",function(event){........})

i all lost , many thanks for help.
Answer posted by Support on Aug 12, 2008 05:02

>>, but get a alert on the attachEvent line, it said object can not support the property
Which version of dhtmlxcombo you are using? The version 1.0 had not have support for inner events. 

Please beware that IE has global "event" object, which has the same name as incoming parameter of your custom function