I have this code fragment
var combo = new dhtmlXCombo("combo_zone4", "alfa4", 230);
combo.loadXML("create_store2.php");
combo.attachEvent("onChange", onChangeFunc);
combo.enableFilteringMode(true, "select_store.php");
function onChangeFunc() {
var d=combo.getSelectedValue();
var product=$("#selProduct");
product.find('option').remove();
$.ajax({
url: "select_store2.php",
data: "store=" + d,
My questions are what are those 3 files used for, and why we need three different files to be called.
Fragment 1:
combo.loadXML("create_store2.php");
create_store2
seams it returns some XML data, some <option>
tags.
Fragment 2:
combo.enableFilteringMode(true, "select_store.php");
select_store
seams it returns some XML data, some <option>
tags.
Fragment 3:
url: "select_store2.php",
select_store2
seams it returns some JSON data, this is probably the result of the autocomplete call.