I am trying to view a particular header from the request object when
using Ajax.Updater
var myAjax = new Ajax.Updater('item', url, {method: get, onFailure:
failed});
function failed(request) {
alert(request.header('My-Header'));
}
That doesn't work even though the documentation seems to indicate it
should.
If I put an alert inside the header(name) function on Ajax.Request it
gets fired as part of its own completion but if I try and call it like
above the alert doesn't fire. So it almost looks like it is not finding
the function
I am guessing I am just not interpreting the documentation correctly
but I do need to get the values from the response headers.
S.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---