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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force users to click the Submit button

Status
Not open for further replies.

ClifCamp

Technical User
Jul 24, 2001
23
US
I have an application which requires users to submit data they fill in on a form. The form is linked to a SQL database. Some users think it is enough to fill out the form and exit the page/browser without clicking the Submit button. The result is that some user data gets lost because they never submitted. Is there some code for catching users who haven't submitted when they to leave the page or close the browser? Any help will be greatly appreciated.
 
You should be able to catch it on page exit using Javascript (everything you're describing is on the client side, so ASP has nothing to do with it). I suggest Forum216.
 
I think you would essentially have to use the spam technique of loading a new popup window on exit. The form would submit to that popup window on exit. The window could be automatically closed after saving the data. The Javascript forum would probably be able to assist with actual implementation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top