[jQuery] Problem with JQuery form plugin, file uploads, and rails.

[jQuery] Problem with JQuery form plugin, file uploads, and rails.


So I have a remote form that uploads a file. It works, but I can't get
any sort of response from the server even though the upload succeeds.
I have to refresh the page. Here's my code:
$("form.remote").ajaxForm({
    dataType: 'script',
     beforeSend: function(xhr) {    xhr.setRequestHeader("Accept", "text/
javascript");},
        success: function(data){ alert('test');}
});
Any one have any ideas? The upload succeeds, but the alert doesn't
fire. It only fails with a file feild in the form. I know jquery form
it automatically handles some stuff with iframes and the script
response should be surrouded by a textarea tag, I tried doing that
with an rjs file and an ejs file. I'm at my wit's end.