Bug Tracker

Modify

Ticket #1088 (closed bug: worksforme)

Opened 6 years ago

Last modified 6 years ago

ajaxError throws exception in IE6

Reported by: jonathan Owned by:
Priority: major Milestone: 1.1.4
Component: ajax Version: 1.1.3
Keywords: ajaxError ajaxSetup ajaxForm Cc:
Blocking: Blocked by:

Description (last modified by john) (diff)

While applying a default timeout for all ajax calls, the ajaxError handler throws an exception in IE6 (FF & Safari do not).

Code snippet:

$(document).ready(function() {

//setup global ajax timeout option
$.ajaxSetup( {timeout: 5000} );

//create jquery object to contain the error messages
eErrorMessages = $("#errors");

//attache the ajaxError listener to the eErrorMessages jquery object
eErrorMessages.ajaxError(function(request, settings){
 $(this).empty();
 $(this).addClass("errorMessages");
 $(this).append("<p class='error'>We're sorry, but we could not complete your request at this time. Please try again later.</p>");
 $(this).fadeIn("slow");
});

$("#dynamicForm").ajaxForm({target: '#output'});

});

Error Message (from IE6 debugging window):

Line: 1
Char: 1
Error: The data necessary to complete this operation is not yet available
Code: 0

jQuery version used: 1.1.2

Change History

comment:1 Changed 6 years ago by malsup

Could you post a test page that demonstrates this problem?

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Version changed from 1.1.2 to 1.1.3
  • Resolution set to worksforme
  • Description modified (diff)
  • Milestone changed from 1.1.3 to 1.1.4

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.