from irt.org  http://developer.irt.org/script/311.htm

-----Original Message-----
From: Shawn Regan [mailto:[EMAIL PROTECTED]]
Sent: 22 August 2002 15:53
To: CF-Talk
Subject: RE: refresh and back buttom


You cannot keep them from using the "Refresh" button. But you can do this
for the back button. On the page you do not want them to return to put this
in your <HEAD><script>

        window.history.go(1);


This will always tell the browser to go forward in its history 1 step. 

So now if they come to this page the script fires but of course your history
at this point has nothing to move forward too. But if they do the process or
whatever you have on this page, and move onto the next page and try to
return to the first page, the above script fires moving them forward in
their history.

Does this make sense?



Shawn Regan
pacifictechnologysolutions
15530-B Rockfield Blvd. Suite 4 
Irvine, CA 92618
949.830.1623
w w w . p t s 1 . c o m



-----Original Message-----
From: Everett, Al [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 5:37 AM
To: CF-Talk
Subject: RE: refresh and back buttom


We use this in the <HEAD> section of the page:

<CFHEADER NAME="Expires" VALUE="#DateFormat(Now(), 'ddd, dd-mmm-yyyy')#
00:00:00 GMT">
<CFHEADER NAME="Pragma" VALUE="no-cache">
<CFHEADER NAME="cache-control" VALUE="no-cache">

Keeps the client from caching the page.

> -----Original Message-----
> From: Tim Do [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 4:35 PM
> To: CF-Talk
> Subject: RE: refresh and back buttom
> 
> 
> I understand that... just wondering if there was an easier 
> way... like a
> script or something.  How do they online banking sites do it? 
>  If you hit
> refresh or back, it  says page has expired.
> 
> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 1:29 PM
> To: CF-Talk
> Subject: RE: refresh and back buttom
> 
> 
> maybe even drop a cookie on that page you redirected them to, 
> such that
> if they click on anything else, it would set the cookie, then if they
> tried to get
> back to that page, it wouldn't cause they already had that cookie.
> 
> .tony
> 
> Tony Weeg
> Senior Web Developer
> Information System Design
> Navtrak, Inc.
> Fleet Management Solutions
> www.navtrak.net
> 410.548.2337 
> 
> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 20, 2002 4:26 PM
> To: CF-Talk
> Subject: RE: refresh and back buttom
> 
> 
> 1. redirect them to a page that has nothing to do with the action
> they have just completed.
> 
> tony
> 
> Tony Weeg
> Senior Web Developer
> Information System Design
> Navtrak, Inc.
> Fleet Management Solutions
> www.navtrak.net
> 410.548.2337 
> 
> -----Original Message-----
> From: Tim Do [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, August 20, 2002 4:16 PM
> To: CF-Talk
> Subject: refresh and back buttom
> 
> 
> Hello all,
> 
> How would I prevent the user from refreshing a page or 
> hitting the back
> button after an action has been processed?
> 
> 
> Thanks in advance
> 
> 
> 
> 


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to