unless I am missing something...
just change the -1 to -2

I had just done this on one of my client's pages.. If a search comes up 
empty I simply do a
<cfif GetDetails.RecordCount EQ 0>
<cfset ICameFrom = "Javascript:history.go(-2)">
<cflocation url="#ICameFrom#">
</cfif>

I happen to know the search process result is 2 pages away from where 
they came from.. always.. so it works for me.

does that help?
jay
Adrian Lynch wrote:
> Put a redirect to the first page on the middle page that gets triggered when
> it finds a variable you set on the third page.
> 
> Ade
> 
> -----Original Message-----
> From: Kris Pilles [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2003 20:53
> To: CF-Talk
> Subject: Back Buttons
> 
> 
> Is there away to make the back button do history -2 instead of -1 on
> certain pages... I am trying to bypass a form post page to return my
> users to where they origiannlly came from...
> 
> Any ideas...
> 
> 
> 
> Kris Pilles
> Website Manager
> Western Suffolk BOCES
> 507 Deer Park Rd., Building C
> Phone: 631-549-4900 x 267
> E-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to