U can't disable it, so your solution depend son what your trying to achieve.
If you want to make sure a page does not execute again when clicking back,
then you have several options.

1) create an interim page that simply redirects the user after the action is
complete. So clicking back will do nothing more than a redirect.
2) use generated codes that can only be used once and then expire. On your
action page, check the code, if it has not been used, perform the action and
expire the code. If the code has expired, do not perform the action and
display an error message like "you cannot refresh this page.
3) when dealing with javascript type issues where the page needs to be
reloaded and not use the cached one that you normally get when clicking
back, you can expire the page immeditaely.
4) you can remove items from the history using javascript

And no doubt some more.

Russ

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: 02 October 2006 20:10
To: CF-Talk
Subject: RE: Disabling the back button

My buddy's testing application depends on not using the browser's back
button. If it's used, the app behaves like a disco dance floor. 

What do folks do here to disable the back button? 


I write apps that do not break when the back button is used, because there
is no 100% proof way of disabling it.  If the use of this application is
very narrowly defined, and your friend can control who these users are, what
browser they use, and what setting those browsers are configured with; there
are some ways to prevent some types of back button behavior.

Note the long list of ifs in that statement, but if you can live with the
"ifs", Google can provide many ways to do this.  Just remember, users like
me will get around it with little or know effort if I wanted to.




--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any attachments is for the
sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender and delete any
copies of this message. 






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255085
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to