aggaton
January 21, 2015, 9:38pm
#1
I’m using .NET mvc 3
In 4.0.3 and all the way since 2.0 I called ajax like this
dhtmlxAjax.get(sURL, function (oXML) {
if (CheckForXMLError(oXML))
return;
moControl.loadXMLString(oXML.xmlDoc.responseText);
});
where sURL looks something like this
/Base/Organization/Item/List/?UID=a474d4f8-c6ba-4750-b9a0-3dc9b26c8697&ParentItemType=9&ParentUI=Databases1&ControlSystemID=1
Now in 4.1.2 the controller is never called and all I get back is the default login page when path or authentication is wrong.
I’m able to do a load function on the grid after I specify “xml” type, and I am using the same kind of URL path. Why does it work there but not on the new ajax api?
aggaton
January 21, 2015, 10:36pm
#2
Looks like it may have something to do with the browser.
If I use chrome it works, however all ajax calls are broken on at least ie11 and ie8 (have not tried others)
Please try to include the attached js file on the page after dhtmlx.js
It will patch ajax methods
dhtmlxcommon_ajax.zip (1.81 KB)
Ken
January 26, 2015, 10:48am
#4
We have professional lisence… will there be a new release of 4.1.3???
or should we add this after dhtmlx.js
Ken
January 26, 2015, 11:14am
#5
Stanislav I am still having issues with the selectNodes() method (line37) in provided ajax common.
I receive an error that states:
Object doesn’t support propert or method ‘selectNodes’
I am using IE11.0.9 with dhtmlx suite 4.1.2 and new dhtmlxcommon_ajax.js
if (dhx4.isIE)
return docObj.selectNodes(xpathExp) || [] // this fails.
please advise.
thank you