Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ni on Jan 14, 2009 04:47
open dhtmlx forum
Combobox:when text was deleted2

Thanks for your suggestion! That works!

However, I have one problem.
It works for 1 combo box, but I made several combo boxes on one page. In this case, if I use this code which you suggested:
---------------------------------------------------------------------------
on dhtmlcombo.js, line 969

if (text=="") return this.loadXML("autosuggestxmllist.php?op=softwarexml");
---------------------------------------------------------------------------

It works for all of the combobox on the page.
I would like to pass a value to specify which combobox it is.
Do you have any further suggestion?
Answer posted by Support on Jan 14, 2009 07:34
You can update code as

if (text=="") return this.loadXML(this._def_path);


and combo init code as 

  z2.loadXML(\"autosuggestxmllist.php?op=softwarexml\", true, true);
z2._def_path="autosuggestxmllist.php?op=softwarexml";

Answer posted by ni on Jan 14, 2009 08:46
That works beautifully. Thank you!!!