heispsychotic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Apr-13 22:38 UTC
AJAX Opera issue with 400 response.
I dont know if this is an opera bug, prototype/scriptaculous bug, or bug on my part. If you send a response back to an ajax request via php it works fine with a status 200 ok header, however in opera only when that header is a failure header like 400 bad request, the text sent back is not in the javascript... There is an example of this located here http://titan.clunet.edu/test.php Does anyone know why this is happening, what is causing it, or if there is a work around? I know i could always just use a 200 header but using an error header to cause some kind alt actions is much faster. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
heispsychotic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a écrit :> Does anyone know why this is happening, what is causing it, or if > there is a work around? I know i could always just use a 200 header > but using an error header to cause some kind alt actions is much > faster.I was under the impression that browsers did not always build the responseText when the status code was not in the 200-299 range... But this will require more investigation, I have no spec or official doc to point to. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---