I just watched a screencast on how to use Firebug for debugging. So I
gave that a go.

Trying to run request.header('My-Header-Name') throws an exception that
is caught, "TypeError: request.header is not a function"

That confuses me as the documentation looks like that should return the
contents of the header.

I remembered a book I read that returned contents from headers by using
the native function getResponseHeader(name) on the XMLHttpRequest
Object. So I am using that and getting what I need.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to