Categories | Question details Back To List | ||
dhtmlxAjax.get outputResponse When I enter more than 1 line of code in the following function nothing shows on the page (suggesting an error in the cose). function outputResponse(loader) { if (loader.xmlDoc.responseXML != null) var params = loader.doXPath("param"); document.getElementById("title").innerHTML = params[0].firstChild.nodeValue; else alert("Response contains no XML"); } function doOnRowSelected(id) { dhtmlxAjax.get("detail.jsp?ID=" + id, outputResponse); } Can you show how to get the innerHTML value sets. The xml is formatted the same as in your online example. Thank you. Answer posted by Support on Jan 23, 2009 09:23 function outputResponse(loader) { if (loader.xmlDoc.responseXML != null) { //<= var params = loader.doXPath("//param"); document.getElementById("title").innerHTML = params[0].firstChild.nodeValue; } // <= else alert("Response contains no XML"); } |