I am reviewing version upgrades. from v4 to v5
My old source is
function getGridToHTML(dataUrl, arHeader, arWidth) {
var htmlResult = “” ;
var innerHTML = “” ;
var xslLoader = dhtmlxAjax.getSync(“_xml2table_template01.xsl”);
var xmlLoader = dhtmlxAjax.getSync(dataUrl);
var chkVal = xmlLoader.doXPath(“/rows/row”);
if (chkVal.length == 0) {
return htmlResult ;
}
innerHTML = xmlLoader.doXSLTransToString(xslLoader.xmlDoc.responseXML);
var i = 0;
var header = arHeader.split(‘,’) ;
var colCount = header.length ;
var width = arWidth.split(‘,’) ;
htmlResult = “”;
htmlResult += “” ;
for( i; i<colCount; i++ ){
htmlResult += “”;
}
htmlResult += “” ;
htmlResult += innerHTML;
htmlResult += “
”+header[i]+“ |
---|
return htmlResult ;
}
I have been solve this migration problem with
dhtmlxAjax.getSync-> dhx.ajax.getSync
but I can not find any alternative function for doXPath and doXSLTransToString…
Tell me how to solve this problem.
Thanks.