Solved

existing web document without saving

Posted on 2000-03-07
9
203 Views
Last Modified: 2013-12-18
How do I prevent a user from existing the web enabled form without clicking the save button. Currently they can use the backward or forward buttons on the browser to exit without saving or click on any links.
0
Comment
Question by:pcorreya
9 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 2591234
Hi

You can use @Command([Fileclosewindow]) to close the document without saving, this action will take him to previous screen from where he started.

Good Luck
~Hemanth
0
 
LVL 1

Author Comment

by:pcorreya
ID: 2594489
I need to prevent them doing this, not letting them exit.
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 2598212
I really doubt that this it is possible to do what you ask but if you want people to at least read your question just in case there is a way, you need to reject HemanthaKumar's answer so that your question is no longer locked.

Zaphod.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:Simon_Hendry
ID: 2599033
It is impossible to stop someone pressing the back button on there browser or closing your window... It is possible to stop them saving the document without filling in all of the required data using either server side field validation or client side javascript validation , but it is not possible to trap a user at  page ..

 If it was how long do you think the internet would have lasted !!!
0
 
LVL 1

Author Comment

by:pcorreya
ID: 2603169
This is for an intranet application and we need users to save the data before they go off and do something else.
0
 
LVL 2

Expert Comment

by:Paebdb
ID: 2603772
There is a way to disable the back button of the browser, you should ask this in the Internet forum (or Javascript forum).
With Notes, you can only make sure that before going on the document is saved.
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 2604621
However there is no way to stop users from closing their browser. The only thing you can do is have it automatically save when the user leaves the page if it has not been saved yet.

Zaphod.
0
 

Accepted Solution

by:
sam_clayton earned 100 total points
ID: 2611240
Close but not exactly what you want might be:
1) open the document in a browser window which has no back/forward/home buttons.
2) Use the VERY annoying technique of re-opening the page if they try and close it. (trap the onunload event in Javascript)

remember a web session is stateless and this sort of thing is dificult to implement in that arena.

Hope it helps,
Sam
0
 

Expert Comment

by:ribeirora
ID: 11686115
How can, at least, alert the user that the information he typed would not be saved?

Thanks
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Word Pro Conversion utility 13 35
Creating a new theme in discussion8.ntf 6 166
Capture Serial Data in Lotus Notes Database 8 269
Recent Contacts - Lotus Notes 10 695
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question