jQuery ajax, firefox with 302 redirects?

Posted by Lowgain on Stack Overflow See other posts from Stack Overflow or by Lowgain
Published on 2010-06-01T02:18:48Z Indexed on 2010/06/01 2:23 UTC
Read the original article Hit count: 891

Filed under:
|
|
|

I'm having problems in Firefox with 302 redirects coming from my Rails app.

Right now I have

$.ajax({
    url: '/model/33',
    type: 'POST',
    data: 'authenticity_token=efjowiejfoiwej&_method=put&model[value]=aaa',
    complete: myFunc
});

function myFunc() {
    //do what I want
}

This works fine in other browsers, but in Firefox nothing happens, even using a complete callback instead of just a success.

Anything I can missing here?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ruby-on-rails