I have a Rails application that uses ajax extensively. With jQuery. For example one of the models is entirely managed with jQuery: records are created, updated and deleted ajaxly. Evertything works great except for updating records.
I did some testing and what I figured is that jQuery in Firefox (3.6 on Mac, 3.5 on Windows is what I've tested) has problem with detecting server's response when it's 302 redirected to the same URL. What I get in Firebug is:
POST localhost:3000/resources/1 -> 302 Found
GET localhost:3000/resources/1 -> 200 OK
And no jQuery's ajax callback is called. Neither success, complete nor error. But when I create a record and server redirects to another URL "success" callback is called:
POST localhost:3000/resources -> 302 Found
GET localhost:3000/resources/1 -> 200 OK
It doesn't matter if I call $.ajax myself or if I use jquery.form's ajaxForm().
Any ideas?