var msg=xmlHttpReq.responseXML; |
var catalogId=msg.getElementsByTagName("catalogId")[0].firstChild.nodeValue; |
if(catalogId=="valid"){ var validationMessage = document.getElementById("validationMessage"); validationMessage.innerHTML = "Catalog Id is Valid"; } else { var validationMessage = document.getElementById( "validationMessage"); validationMessage.innerHTML = "Catalog Id is not Valid"; } |