Displaying 1 result from an estimated 1 matches for "simcal".
Did you mean:
simca
2008 Mar 25
2
responseXML not working on XML file
...#39;t get responseXML.
I''m confused what I am doing wrong. If i change the response variable
and dump responseText, it shows the file, it just doesn''t recognize it
as xml.
function xml(url){
new Ajax.Request(url, {
method: ''post'', parameters:''resultSet=simcall'',
onSuccess:parseResponse,
onFailure:function(xhrResponse){alert(''nope'');}
});
}
var parseResponse= function(xhrResponse){
var response=xhrResponse.responseXML;
var paramList= response.getElementByTagName(''lastname'');
alert(paramList[0].firstChild.no...