On 3/3/06, Maninder, Singh <[EMAIL PROTECTED]> wrote:
how? i put this
function showResponse(originalRequest){
alert(originalRequest.responseHeaders); << new line to see the headers
var xml = originalRequest.responseText;
var x = xml.getElementsByTagName('emperor');
$('respuesta').value = x[0].childNodes[0].nodeName;
}
but is not working
Make sure the response you are receiving is XML and not Text in case you want to traverse through XML.
Check it by checking the responseHeaders().
how? i put this
function showResponse(originalRequest){
alert(originalRequest.responseHeaders); << new line to see the headers
var xml = originalRequest.responseText;
var x = xml.getElementsByTagName('emperor');
$('respuesta').value = x[0].childNodes[0].nodeName;
}
but is not working
Hope this helps!
Thank you,
Mandy.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
//
// Ing. Francisco J. Calderón S.
// [EMAIL PROTECTED]
// Usuario de GNU/Linux nº 349529
// Maracay, Venezuela
//
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs