Bug Tracker

Opened 6 years ago

Closed 5 years ago

#6760 closed bug (invalid)

Have a Probleman in event unload or onbeforeload

Reported by: rafaeldorazio Owned by:
Priority: undecided Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

$(document).ready(function() {

$(window).unload(function() {

$.get('Sair.ashx', { user: document.getElementById('lblDe').innerHTML }); alert('postget');

});

});

If you remove the alert () code, it does not work in firefox 3.6.6

Attachments (4)

Chat.aspx (4.1 KB) - added by rafaeldorazio 6 years ago.
Chat.aspx.vb (1.4 KB) - added by rafaeldorazio 6 years ago.
Chat.xml (363 bytes) - added by rafaeldorazio 6 years ago.
Login.aspx (958 bytes) - added by rafaeldorazio 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by rafaeldorazio

Changed 6 years ago by rafaeldorazio

Changed 6 years ago by rafaeldorazio

Changed 6 years ago by rafaeldorazio

comment:1 Changed 5 years ago by dmethvin

  • Priority set to undecided
  • Resolution set to invalid
  • Status changed from new to closed

If you perform an async event in an unload handler, there is no guarantee that it will complete before the page unloads. The alert gives the ajax the time it needs to complete.

Note: See TracTickets for help on using tickets.