How can the browser back button be disabled If the form is submitting
information to other pages or submitting to itself or using
redirections.
I tried the tweaks like history.forward (1) in each page to prevent user
to navigate back but its not very effective.
The server side scripting is done using ASP.
you may ask that why at first place I want to disable the browser back
button, this is due to the following issue http://groups.google.co.in/group/asp...a38b4635b32b88
In absence of response from responsible MVPs, I decided to provide a
back button in the application that use redirection mechanisms but
since user always has back button on browser, it makes the application
error-prone.
Thanks, 5 2995
ns21 said the following on 8/8/2006 2:46 AM:
How can the browser back button be disabled
Make sure there is no other page opened first. Otherwise, it can't be
disabled.
If the form is submitting information to other pages or
submitting to itself or using redirections.
Whether it is submitting information to another page, itself, to
nowhere, using redirects, is all irrelevant. You can't disable the back
button if the browser enables it.
I tried the tweaks like history.forward (1) in each page to prevent user
to navigate back but its not very effective.
It's not a "tweak", its a .001% effective hack is all.
The server side scripting is done using ASP.
ASP, PHP, PERL, it's irrelevant what server side language is used to
generate what the browser deals with.
you may ask that why at first place I want to disable the browser back
button, this is due to the following issue http://groups.google.co.in/group/asp...a38b4635b32b88
Fix your back end and stop trying to fix the wrong problem. Your server
side code should be able to handle *anything* the client does - and -
recover from it without client side hacks to prop it up.
In absence of response from responsible MVPs,
I only know 1 responsible MVP.
I decided to provide a back button in the application that use
redirection mechanisms but since user always has back button on
browser, it makes the application error-prone.
If the Back button breaks your app, it was error-prone before the Back
button was discovered.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Thanks Randy for quick reply,
You are right that I could be in wrong direction to fix the wrong
problem.
But the issue, which I am facing is the originator of the wrong
approach.
The issue mentioned in this thread http://groups.google.co.in/group/asp...a38b4635b32b88
This is really not specific to ASP, its rather a browser level issue
but since I was working on ASP I posted that into ASP forum.
I have posted very small code in the thread above that helps simulating
the issue, I am not using any backend operations... the page is only
displaying date time from the server.
The REAL requirement is to make sure that page get fresh copy from the
server and on hitting back button it should not through Page can not be
displayed error.
Can you pls help?
Randy Webb wrote:
ns21 said the following on 8/8/2006 2:46 AM:
How can the browser back button be disabled
Make sure there is no other page opened first. Otherwise, it can't be
disabled.
If the form is submitting information to other pages or
submitting to itself or using redirections.
Whether it is submitting information to another page, itself, to
nowhere, using redirects, is all irrelevant. You can't disable the back
button if the browser enables it.
I tried the tweaks like history.forward (1) in each page to prevent user
to navigate back but its not very effective.
It's not a "tweak", its a .001% effective hack is all.
The server side scripting is done using ASP.
ASP, PHP, PERL, it's irrelevant what server side language is used to
generate what the browser deals with.
you may ask that why at first place I want to disable the browser back
button, this is due to the following issue http://groups.google.co.in/group/asp...a38b4635b32b88
Fix your back end and stop trying to fix the wrong problem. Your server
side code should be able to handle *anything* the client does - and -
recover from it without client side hacks to prop it up.
In absence of response from responsible MVPs,
I only know 1 responsible MVP.
I decided to provide a back button in the application that use
redirection mechanisms but since user always has back button on
browser, it makes the application error-prone.
If the Back button breaks your app, it was error-prone before the Back
button was discovered.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
ns21 wrote:
How can the browser back button be disabled If the form is submitting
information to other pages or submitting to itself or using
redirections.
The standard patten is to process the POST request then redirect (which will
be a GET request). If the user hits back they go to the form page, not the
form handler, so the data doesn't get reposted.
--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
On 2006-08-08 08:46:31 +0200, "ns21" <ni**********@g mail.comsaid:
How can the browser back button be disabled If the form is submitting
information to other pages or submitting to itself or using
redirections.
I tried the tweaks like history.forward (1) in each page to prevent user
to navigate back but its not very effective.
The server side scripting is done using ASP.
you may ask that why at first place I want to disable the browser back
button, this is due to the following issue http://groups.google.co.in/group/asp...a38b4635b32b88
In absence of response from responsible MVPs, I decided to provide a
back button in the application that use redirection mechanisms but
since user always has back button on browser, it makes the application
error-prone.
Thanks,
I doubt you can...
History object should not be accessible (at least on W3C compliant
browsers ...) .
If you are using Firefox, have a look on PrivilegeManage r, but I don't
think you can change this behavior.
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- http://schoenenberger.free.fr
David,
This is a good option and it works for my small POC. but it cannot be
applied to this application as there is lot of inline code and
processing, its like performing the search and drill down pages, few
drill down pages also perform search resulting in more pages.
What is the main reason that the Page do not refresh automatically if
submit was Hit and back is pressed?
how do you handle this "submit hit + back enabled + NO page cannot be
displayed error" in large applications that strictly dont allow any
kind of cache?
David Dorward wrote:
ns21 wrote:
How can the browser back button be disabled If the form is submitting
information to other pages or submitting to itself or using
redirections.
The standard patten is to process the POST request then redirect (which will
be a GET request). If the user hits back they go to the form page, not the
form handler, so the data doesn't get reposted.
--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ralph Freshour |
last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP?
Thanks...
|
by: Tony Marston |
last post by:
If the use of the browser's BACK button is interfering with the operation of
your web application then take a look at this article entitle "Back Button
Blues"
http://www.tonymarston.co.uk/php-mysql/backbuttonblues.html
--
Tony Marston
http://www.tonymarston.net
|
by: zdrakec |
last post by:
Hello all:
I note in my application, that when I use
Server.Transfer("somepage.aspx"), when the new page is loaded, and I
click the Back button on the browser, that the previous page, when it
displays, does not appear to have its Page_Load event fire. Neither
does the page which I am leaving have its Page_Unload event fire.
Additionally, there is a listbox on the first page that is populated
based on user-selected values. This...
|
by: Shimon Sim |
last post by:
Hi
Is it possible to make sure that the page doesn't show in browser history
and won't effect Back button.
The problem is that every postback shows as another entry for "Back" button
and user goes through the hole history of postbacks if she wants to get to
previous page.
Thank you,
Shimon
|
by: Liming |
last post by:
Hi,
I have a multiview (with 10 views inside). Now on View2, I ask the
user to uplaod a file and click Save to go to View3 and once they get
to view3? If the user hits my "previous" button, View2 needs to display
the filename of the uplaoded file.
Here is the problem.
1. In Firefox 1.5, in view3, if the user clicks "browser back" instead
| |
by: tshad |
last post by:
I was looking for a way to handle refreshes (user pressed refresh button)
and found a piece of code to check if a Web page was refreshed but I can't
get it to work.
The code is:
************************************************************
Namespace StevenBey.Web.UI
Public Class Page
Inherits System.Web.UI.Page
|
by: hemant.singh |
last post by:
Hi all,
I am trying to get a way by which I'll know exactly when user goes out
of my site by clicking on close button in browser, So that w/e user
click close button in browser, I can send a signal to server.
This seems to be achievable with body unload events, but it is little
too much, as even if user navigate within my site, this event will be
generated, this can be avoided by handling onclick of each link, so
that I'll know exactly...
|
by: toeffetommy |
last post by:
Hello,
I need a piece of functionality developed for our Website and I need some technical advice on how get there.
Essentially, what I want to develop is a browser-within-browser functionality where the ‘mini-browser’ has similar functionality to a normal browser.
Let me explain:
Firstly, our website interface will open up in a popup window. All the normal browser toolbars and buttons have been removed from the popup window. It’s...
|
by: Randy |
last post by:
I have an application with a datagrid and a button to export the grid
to excel. For the most part this is working fine. Here's the export
method:
Private Sub btnExcel_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnExcel.Click
Try
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |