Skip to main content

Bug Tracker

Side navigation

#6760 closed bug (invalid)

Opened July 03, 2010 06:14PM UTC

Closed October 03, 2010 10:19PM UTC

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 July 03, 2010 06:27PM UTC.
  • Chat.aspx.vb (1.4 KB) - added by rafaeldorazio July 03, 2010 06:27PM UTC.
  • Chat.xml (0.4 KB) - added by rafaeldorazio July 03, 2010 06:27PM UTC.
  • Login.aspx (0.9 KB) - added by rafaeldorazio July 03, 2010 06:27PM UTC.
Change History (1)

Changed October 03, 2010 10:19PM UTC by dmethvin comment:1

priority: → undecided
resolution: → invalid
status: newclosed

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.