Skip to main content

Bug Tracker

Side navigation

#1088 closed bug (worksforme)

Opened March 30, 2007 08:18PM UTC

Closed July 21, 2007 01:08AM UTC

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:
Blocked by: Blocking:
Description

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

Attachments (0)
Change History (2)

Changed April 05, 2007 04:31PM UTC by malsup comment:1

Could you post a test page that demonstrates this problem?

Changed July 21, 2007 01:08AM UTC by john comment:2

description: 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.2While 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
milestone: 1.1.31.1.4
resolution: → worksforme
status: newclosed
version: 1.1.21.1.3