Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ludo on Dec 08, 2009 12:02
open dhtmlx forum
Error in Samples?

Priwet,

Spasibo bolshoe za pomosh w rabote s washej programmoj.
Ja rabotaju s samples http://dhtmlx.com/docs/products/dhtmlxCombo/samples/04_filtering/02_combo_filter.html

eto rabotaet:
var z = new dhtmlXCombo("combo_zone2", "alfa2", 200);
z.enableFilteringMode(true);
z.loadXML("../common/data.xml");

a eto net:

var z = new dhtmlXCombo("combo_zone4", "alfa4", 200);
z.enableFilteringMode(true, "php/complete.php", true);

i eto toze ne rabotaet

var z = new dhtmlXCombo("combo_zone5", "alfa5", 200);
z.enableFilteringMode(true, "php/complete.php", true, true);

est' li wozmoznost' poprawit programmu?

podskazite, 4to ja delaju neprawilno.

Spasibo

Ludo...


Answer posted by Alex (support) on Dec 09, 2009 01:47

Hello,

autocomplete mode (combo.enableFilteringMode(true,url)) requires using some server-side script. In case of the dhtmlxCombo/samples/04_filtering/02_combo_filter.html sample - "php/complete.php".

The complete.php script gets data from the database. So, you should define correct database parameters in the dhtmlxCombo/samples/common/config.php.