Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Change History
comment:1 Changed 3 years ago by dmethvin
- Priority set to undecided
- Status changed from new to closed
- Resolution set to invalid
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

