function parseResponse(responseXML, attributename) {
debugger;
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.loadXML(responseXML);
x=xmlDoc.getElementsByTagName("a:KeyValuePairOfstringanyType");
for (i=0;i<x.length;i++)
{
if (x[i].childNodes[0].text == attributename)
{
//we decode the base 64 contents and alert the HTML of the Iframe
alert(x[i].childNodes[1].text);
}
}
}
PROBLEM: With UR 12 and above you can still use this type of function but the responseXML property no longer exists on the response object.
SOLUTION: now instead of passing in your myresponse.responseXML.xml property of your response, now the property of your reponse is just in a new response property, so the new syntax would just be myresponse.response
I hope this helps!!
-
This is why I use jQuery. :)
ReplyDelete:P
DeleteDave, you should hook the audience here up with a good jquery example.
DeleteHey Jamie,
ReplyDeletehow is the code above changing if working with myresponse.response?
Thanks!
Or code like this:
Deletevar bodyNode = req.responseXML.firstChild.firstChild;
for (var i = 0; i < bodyNode.childNodes.length; i++) {
var node = bodyNode.childNodes[i];
//NOTE: This comparison does not handle the case where the XML namespace changes
alert("hier");
if ("CreateResponse" == node.nodeName) {
var newQuoteId = node.firstChild.text;
alert("ID:" + newQuoteId);
return newQuoteId;
}
else {
alert("Der Vertrag konnte nicht kopiert werden.");
break;
}
The code isn't actually changing above, you are changing what you are passing into it. :)
DeleteThis comment has been removed by the author.
ReplyDelete