hi, I want a simple ajax event to be fired when user closes the browser; the code below sometimes works, sometimes not... and don't know the reason. someone has an idea why does it happen? I suppose it's about browser behaviour... (tested by firefox 2.0) And if I wanna apply this when a user closes a browser tab, is it possible? (I think unload affects only when you close the browser, not any tab)
jQuery(window).unload(function() { $.get('http://localhost/fitxers/borvdrar.php'); }); //the php deletes info from a database (postgreSQL) given a userid thanks! PEre -- View this message in context: http://www.nabble.com/problem-closing-browser-events-%28unload-funtion%29-tp16823733s27240p16823733.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.