DHTMLX Combo

Hello Sir,



Strange thing happened with dhtmlx combo, i am using var opt= z.getOptionByLabel(“some text”); and retrieving the option.



in mozilla when i alert (“some Text”) then alert(opt) shows [object object ], but when i removed the alert then it will give me null for opt. Please suggest solution.



Prasad Joshi


Hello,


This method can be called only after data loading. The second parameter of the loadXML method is the function which is called after xml loading.


For example:


combo.loadXML(“some.xml”,function(){


var opt= z.getOptionByLabel(“some text”);


alert(opt);


})


If problem persists, please provide the sample to recreate it.