Another thought - I've found out that our office email servers are bouncing some
external mail as spam... So maybe some of you have tried to reply to me off list, yet
I haven't gotten any of them :(
If you have tried to reply to me on this issue -- please try again using this email:
[EMAIL PROTECTED]
Thanks!
Mitch "still hoping for some help - please excuse the further interruption" Aunger
:)
-----Original Message-----
From: Aunger, Mitch
Sent: Wednesday, September 17, 2003 1:51 PM
To: CF-Talk
Subject: cfcookie and browser back button - causes page refresh - help?
Hi y'all
I have a new issue that has me stumped. Maybe if i talk it out, someone will know the
answer.
I have a CFMX include (tho the same thing probably happens in a CF5 environment tho i
haven't gone back and tested it) that i'm using to create a popcorn trail at the top
of all the pages in my site. We opted to use cookies to do this (yes, there are a
million other ways)... and i've recently discovered this is causing a problem.
There is something in the code shown at the bottom of this note that is causing my
problem. If I leave the code uncommented, the code executes and cookies are properly
created -- yet if i use the browser back key on any page, the previous page (which
also executes the same code) re-executes - even tho the traditional back button action
is to just display the page as it was. The real problem occurs when the previous page
was a form - the refresh forces all of the user entered data to be lost and I don't
want that to happen!
If I comment out the code, everything works ok (tho the popcorn trail obviously isn't
created) - but the back button in the browser does NOT cause the page to refresh
automatically.
Does anyone know WHY this code would cause the browser to force a page refresh in both
IE5.5 and NS 4.73?????? (Stuck there due to work requirements - can't go to newer
browsers - sorry I can't share a link with the group - 'tiz inside a firewall)
Here's the code that seems to be the problem:
cfif get_page.menuLevel eq 1>
<!--- If cookie 1 already exists - delete and set new --->
<cfif isdefined("cookie."&#site.siteName#&"cookie1")>
<!--- If the cookie1 is already defined, delete and create new --->
<!--- Delete Old! --->
<cfcookie name="#site.siteName#cookie1"
value="<a href='index.cfm?#cgi.QUERY_STRING#'><font
color='ffffff'>#get_page.menuTitle#</font></a>"
expires="NOW">
<!--- Create New! --->
<cfcookie name="#site.siteName#cookie1"
value="<a href='index.cfm?#cgi.QUERY_STRING#'><font
color='ffffff'>#get_page.menuTitle#</font></a>"
expires="1">
<!--- If a new cookie1 is being set, and cookie2 exists, delete cookie2 --->
<cfif isdefined("cookie."&#site.siteName#&"cookie2")>
<!--- Delte Old! --->
<cfcookie name="#site.siteName#cookie2"
value="<a href='index.cfm?#cgi.QUERY_STRING#'><font
color='ffffff'>#get_page.menuTitle#</font></a>"
expires="NOW">
</cfif>
<!--- If cookie1 does not exist - create --->
<cfelse>
<!--- Set the cookie! --->
<cfcookie name="#site.siteName#cookie1"
value="<a href='index.cfm?#cgi.QUERY_STRING#'><font
color='ffffff'>#get_page.menuTitle#</font></a>"
expires="1">
</cfif>
<cfelse>
<cfif isDefined("URL.debug")> not level 1<br></cfif>
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137956
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm