Displaying 2 results from an estimated 2 matches for "parseresponse".
Did you mean:
parse_response
2008 Mar 25
2
responseXML not working on XML file
...#39;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.nodeValue);
}
<?xml version="...
2007 Feb 15
2
ajax.request not working in ie7
...#39; + location.host + ''/something
HTTP/1.1'',''MessageType'',''CALL'' ];
var myAjax = new Ajax.Request( url, { requestHeaders: headers
,contentType: ''text/xml'', method: ''post'', postBody: myString, onComplete:
parseResponse });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this...