Check documentation for the latest version of dhtmlxSuite Migration to v4.1 DHTMLX Docs

Migration to v4.1

dhtmlxAjax => ajax

Instead of dhtmlxAjax you should use dhx.ajax for ajax operations. See dhtmlxAjax API for details.

Handling errors

Instead of dhtmlxError.catchError you should use onLoadXMLError handler.

XPath

Similar to doXpath in older version of API you can use xmltop and xpath methods

var root = dhx.ajax.xmltop("rows", xml_object);
var nodes = dhx.ajax.xpath(xpath_expression, root_node);
  • "rows" - name of root XML tag
  • xml_object - raw xml object, result of dhx.ajax
  • xpath_expression - path expression used to select nodes or node-sets in XML
  • root_node - node from which XPath will be applied, you can use xmltop to get it
Back to top