Bug Tracker

Modify

Ticket #7112 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

AJAX error callback function executes twice in IE 6+

Reported by: misxa Owned by:
Priority: undecided Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

AJAX error callback function executes twice in IE 6+ if the XML file is unavailable because it doesn't exist. The code below is the current code which produces this problem. The UI dialog in the error function pops up twice in IE. The same thing happens with simple alert() function. Other browsers work just fine;

Code:

$.ajax({

type: "GET", url: "vjezbe/vjezbe.xml", dataType: "xml", success: xmlSuccess, error: xmlError

});

function xmlError(xhr, message, optional) {

$('<p class="poruka">XML podaci sa vježbama su nedostupni!</p>').dialog({

modal: true, title: 'Poruka', buttons: {

OK: function() {

$( this ).dialog( "close" );

}

}, resizable: false

});

}

Change History

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to worksforme

 live test case Not reproducible.

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.