jquery: can you do an ajax request in $(window).unload()?

DarkLink

New Member
I am absolutely terrible at logging my hours.So my idea is to have a browser shortcut that i open when i am starting work.Then when i am finished close it.This will then to an ajax request to a php script that will update my hours for me.To do this.Can i do an ajax request in \[code\]$(window).unload()\[/code\]?or will the browser close before this completes?and, will the php script on the other end run?
 
Back
Top