Open professor opened 10 years ago
When submitting an attachment, the next page is blank.
this is because the client doesn't say that it will accept javascript as a response.
Here is a work around
$(function() {
$.ajaxSetup({ 'beforeSend': function(xhr) { xhr.setRequestHeader("Accept", "text/javascript"); } });
});
See if this issue goes away in Rails 3.1
https://github.com/rails/jquery-ujs/issues/52
When submitting an attachment, the next page is blank.
this is because the client doesn't say that it will accept javascript as a response.
Here is a work around
$(function() {
$.ajaxSetup({ 'beforeSend': function(xhr) { xhr.setRequestHeader("Accept", "text/javascript"); } });
});
See if this issue goes away in Rails 3.1
https://github.com/rails/jquery-ujs/issues/52