Hi
I have an issue with dhtmlxCombo using enableFilteringMode. My code looks like this:
function loadSuppliers() {
dhtmlXSupplierCombo = dhtmlXComboFromSelect("supplier");
dhtmlXSupplierCombo.enableFilteringMode(true, "pageVRD.vrd?session=d48o0qdvj27aflrqptuwt0rzhfeatnhf&page=poEntry&formAction=getSuppliers",true,true);
}
dhtmlxEvent(window,"load",loadSuppliers);
var dhtmlXLocationCombo;
function loadLocations() {
dhtmlXLocationCombo = dhtmlXComboFromSelect("location");
dhtmlXLocationCombo.enableFilteringMode(true, "pageVRD.vrd?session=d48o0qdvj27aflrqptuwt0rzhfeatnhf&page=poEntry&formAction=getLocations",true,true);
}
dhtmlxEvent(window,"load",loadLocations);
With the above code, in v4.02. As soos as I type in the combobox I get Uncaught TypeError: Cannot read property ‘documentElement’ of null(…) on dhtmlx.js:411
The issue is the request is coming through to the server but with a POST and not a GET.
It should be a GET.
My question is how can I change the enableFilteringMode to do a GET instead of a POST? Also why is it doing a POST in v4.02 where in v3.6 it was a GET?
I have tried adding
dhx.ajax.method = “get”;
and
window.dhx4.ajax.method = “get”;
But that is not changing the POST to a GET request.
Thanks