Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back one Page in IE 1

Status
Not open for further replies.

florida41

Technical User
May 13, 2004
95
US
Anyway I can make my Browser go back to a previous page just like Netscape 7 does?

My Cold Fusion form processes data and then if I hit the back button in IE6 it says "Page Expired..." and doesnt go back to the form page. I tried many variations of the history.back() functions:
history.back()
history.go(-1)
history.back(-1)

It still doesnt take me back to the form page. The Netscape 7 Browser Button works all the time with the Action/Result page where I submit a form and it takes me to the action page then if I hit the Netscape 7 Browser Back button it takes me back to the form.

Should I look into just passing back a variable to get back to the form? IF so how would I do that because I have one field I am passing called Cust_id?
Code:
<a href="mysite.cfm?cust_id=1">back</a>

Please advise anything I can do???
 
This is a known issue, it is the default behavior of CF. It can be controlled with cfheader tags. Put this line of code in your application.cfm page and it should take care of the problem.
Code:
<!--- fix back button bug: macromedia known issue # 46095,48216 --->
<cfheader name="cache-control" value=7200>



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Thanks Ecobb. I wish I could give you more than one star to show how much this helped my web site!
 
[blush] No problem, I'm glad I could help!



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
I use

<a href="javascript:history.back()">Previous Page</a>

-Craig
 
Opps, my fault for not reading the entire question.

-Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top