Solved

existing web document without saving

Posted on 2000-03-07
9
200 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
Comment Utility
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
Comment Utility
I need to prevent them doing this, not letting them exit.
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
Comment Utility
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
 
LVL 3

Expert Comment

by:Simon_Hendry
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 1

Author Comment

by:pcorreya
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
How can, at least, alert the user that the information he typed would not be saved?

Thanks
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

  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…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now