I am creating a dhtmlXComb using the following model:
locationJs = new dhtmlXCombo("location_zone", "location",250); locationJs.enableFilteringMode(true,"SOURCE_LINK",true,false); locationJs.setComboText("London");
The SOURCE_LINK is returning an xml (is created by the book) like this:London New York
Also SOURCE_LINK is getting city id and city name from the database and the id is the one I am interested in.
I am performing a search based on the city(which is my dhtmlx city dynamically loaded) and I would like to fill user search criteria with his previous search values. After search is completed, my page is reloaded and I am setting the combo to value “London” exactly as the user entered previously. In that moment the combo does not associate the text with corresponding value 1 as from the xml. Next time I press search, the seached value for city id is null and results are different.
How can I set the predefined value and text for combos which loads data dynamically ?
Thanks a lot