|
 |
asp_web_howto thread: help please
Message #1 by abel09@u... on Wed, 18 Dec 2002 13:41:20
|
|
I want to update a field in my DB when a user leaves a specific page. I
have tried to use the window_onunload subroutine. Is there any way to stop
the subroutine from excecuting until the user leaves the page? If not, is
there another way to accomplish what I want to do?
Thx
Message #2 by "Johnson, Israel" <IJohnson@R...> on Wed, 18 Dec 2002 09:11:55 -0500
|
|
Try creating a page that updates the record
updateRecord.asp
Create a clientside function that passes the update date into querystring
var NewWin = window.open("balnk.asp","features")
NewWin.location.href = "updateRecord.asp?variable=value&var2=value2"
//other processing
Tie the clientside function to the onunload or onbeforeunload event
-----Original Message-----
From: abel09@u... [mailto:abel09@u...]
Sent: Wednesday, December 18, 2002 8:41 AM
To: ASP Web HowTo
Subject: [asp_web_howto] help please
I want to update a field in my DB when a user leaves a specific page. I
have tried to use the window_onunload subroutine. Is there any way to stop
the subroutine from excecuting until the user leaves the page? If not, is
there another way to accomplish what I want to do?
Thx
|
|
 |