Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close browser update database

Status
Not open for further replies.

queryguy

Programmer
Oct 10, 2003
23
SG
Hi experts,

is there a way to update my database upon closing the browser without any popup window?
For example like a chat room, when you close the browser it update the database and let other know you have left the chat room.

I tried onunload but it doesn't seem to work... maybe the closing action is too fast for the command to be execute?


PLease kindly help me thanks.

P/s: I found no help in javascript forum so I post here

 
PHP is server-side. There is no mechanism within PHP that can guaranty what you want to happen will actually happen.

Most chat room software is special purpose. IRC, for example, uses a different protocol from the web.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
my friend has done it on his website but he wont tell me how its done :( if i could find out i would tel you.

i tryed the unload command using javascript but it would do it for everywindow you leave like if you go from page a - b it would pop up.

I do have a theory however, il post it when i get more on it.

Martin

Computing help and info:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top