dhtmlxAjax loader.doSerialization()

Hello,



How do I pass the the elements from the dhtmlxAjax loader.doSerialization() response to the correct div ids?



It allows me to select only one element at a time or I get an error;



document.getElementById(“title”).innerHTML = loader.xmlDoc.responseXML.getElementsByTagName(“param”)[0].textContent;



I would like to get id, title, publisher, author and date.



How do I get this to work? Do you have any other dhtmlxAjax examples that show how to work with the loader.doSerialization() response?



I look forward to hearing from you soon.



Thank you.



Denis

doSerialization method can be used to convert XML object to XML string, which is not necessary in your use-case

if you need to select value of some element in XML you can you doXPath() method

var params = loader.doXPath("//param");
document.getElementById(“title”) = params[0].firstChild.nodeValue;