473,388 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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_cookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?
Oct 15 '05 #1
3 1939
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_cookie()">. 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.net.au> wrote:
In the confirmation page, I was thinking maybe a <body
onunload="del_cookie()">. 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.net.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_cookie()">. 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
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...
6
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...
3
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,...
4
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...
2
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...
2
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....
1
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...
2
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...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.