473,626 Members | 3,183 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Confirmation Page and [Back] button

Hi. On my online ordering form I use browser cookies to keep track of
user items. My confirmation page reads:

"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".

Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be available
if customers [go back] from the confirmation page.

In the confirmation page, I was thinking maybe a <body
onunload="del_c ookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?
Oct 15 '05 #1
3 1969
Dennis Allen wrote:
Hi. On my online ordering form I use browser cookies to keep track of
user items. My confirmation page reads:

"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".

Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be available
if customers [go back] from the confirmation page.

In the confirmation page, I was thinking maybe a <body
onunload="del_c ookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?


It took about 30 seconds to add:

<body onunload="alert ('hi');">

to some random page and discover that for Firefox and IE, onunload fires
when the back button is used.

--
Rob
Oct 15 '05 #2
RobG <rg***@iinet.ne t.au> wrote:
In the confirmation page, I was thinking maybe a <body
onunload="del_c ookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?


It took about 30 seconds to add:

<body onunload="alert ('hi');">

to some random page and discover that for Firefox and IE, onunload fires
when the back button is used.


But it doesn't in Opera, so I wouldn't rely on it.

--
Spartanicus
Oct 15 '05 #3
This there a way to differentiate between exiting the page via the back
button and normal transitions?

"RobG" <rg***@iinet.ne t.au> wrote in message
news:43******** *************** @per-qv1-newsreader-01.iinet.net.au ...
Dennis Allen wrote:
Hi. On my online ordering form I use browser cookies to keep track
of user items. My confirmation page reads:

"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".

Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be
available if customers [go back] from the confirmation page.

In the confirmation page, I was thinking maybe a <body
onunload="del_c ookie()">. I tried it, but it didn't seem to work.
Does the [Back] button activate onunload?


It took about 30 seconds to add:

<body onunload="alert ('hi');">

to some random page and discover that for Firefox and IE, onunload
fires when the back button is used.

--
Rob

Oct 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3698
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No confirmation message. By adding just an confirm attribute for 'onclick' event of the button doesn't work with validation controls. Is there any short way to go around this. Thanks Nedu
6
3409
by: Dave | last post by:
Hello. I want to prompt user for some action with Yes/No message, I know some tricks in JavaScript, but I need to handle the user answer at server side. Exactly I want to prompt user for confirmation on delete action of some data in my application. How can I do this?
3
2783
by: vcornjamb | last post by:
Hello, I am developing a web form that contains some buttons and a data grid which has as its last column link buttons that will delete the data associated with that row. Everything works fine, but users have requested a confirmation message pop up so the user can confirm the delete. I can not quite get this to work. Here are the facts: I am working in the Microsoft Development Environment 2003 (Version
4
3026
by: DrData | last post by:
I'm working on an ASP.Net application written in C#. On one page, there are several datagrid controls used to display, edit and delete detail records relating to the master record also displayed on that page. Each row in each datagrid includes a Delete button (added at runtime by the code-behind page as a ButtonColumn) and an Edit button (added at runtime by the code-behind page as an EditCommandColumn). What is the quickest, easiest and...
2
8966
by: steggun | last post by:
How To: Popup Confirmation Dialog & Redirect in LinkButton_OnClick Hello All, I have a ASP.NET 2.0 (C#) web form with a LinkButton control. In the server-side code for the LinkButton_OnClick event, I need to do some processing and, if it succeeds, popup a confirmation dialog and redirect to a different page. How can I do this? Here's some pseudo-code:
2
2021
by: bienwell | last post by:
Hi all, I still have a problem when using Confirmation box in ASP.NET program. I need to get the value return of YES or NO from confirmation box in Sub function of VB program to do some tasks. For example, I have 2 text boxes and one button. The button will call On_Click event . Sub btnSelect_OnClick(ByVal sender As Object, ByVal e As EventArgs) Dim X as double = CDBL(txtbox1.text) Dim Y as double = CDBL(txtbox2.text)
1
2973
by: brianpmccullough | last post by:
I have an ASP.NET page that has a few buttons on it. One of the buttons kicks off a long running process on the web server and I want to prevent the user from clicking the button again while the long running process is working (i.e. before the page completes it's "postback"). I tried something like so, but it didn't work: <script language="javascript"> function confirmWinnerSelection(myBtn){ if (confirm('Are you sure?')) {
2
7707
by: bay_dar | last post by:
Hi, I have an internal ASP.NET application that I'm are using to send e-mails out based on a single milepost or milepost range entered. I'm trying to do two things when a user clicks on the submit button to submit a form that contains one or two Mileposts: 1) If a Milepost range larger than 5 miles is entered, I would like to pop up a confirmation box to confirm the range.
5
1582
by: sweetpotatop | last post by:
Hi, I have a page written in C# asp.net, which allow users to select and delete records. Once user selects the record to be deleted, I will confirm with the user, something like "Are you sure you want to delete the selected records?" If yes, I will go and delete the record from SQL. How can this
0
8265
marktang
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...
0
8196
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,...
0
8705
Oralloy
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...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
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,...
0
8504
tracyyun
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...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2625
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.