Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

jquery window.unload does not trigger now in ver 18

  • 5 απαντήσεις
  • 7 έχουν αυτό το πρόβλημα
  • 9 προβολές
  • Τελευταία απάντηση από Carno Mercado

more options

the event is no longer triggered when the browser window is close. previous versions do.

the event is no longer triggered when the browser window is close. previous versions do.

Όλες οι απαντήσεις (5)

more options

A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.


There are other things that need your attention.

You have a corrupted user agent that identifies you as Firefox/3.6.16

  • Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16 (.NET CLR 3.5.30729) FBSMTWB

See:

more options

I am using a portable version of firefox, we have another development machine that has the full 18 version that we detected the $(window).unload event doesnt trigger. I uninstalled the 18 version and replaced with a portable version 16 and now the jquery event is fired.

more options

I will visit the mozillazine site you suggested.

more options

went to mozilline, there are two possible issues: the unload or the post.

$(window).unload(function(){ $.post('/ffc/myjqpost.pl') ;}) ;

more options

resorted to native javascript via html: <body onunload="function here" > ; it Worked!!