jQuery: getResponseHeader not working in IE when used inside error function
问题 I am using jQuery 1.7.1. along with the Ajax Form plugin, latest version available. When I do an Ajax request, such as: $('form').ajaxForm ( { success: function ( data ) { alert ( data.responseText ); }, error: function ( data, status, error ) { alert ( data.getResponseHeader('Content-type') ); } } ); If the request returns an error, IE (IE9, in my case) will always return undefined for the Content-type header or any other header for that matter. The data.responseText property also returns