This is a multi-part message in MIME format.

------=_NextPart_000_0100_01C04EF7.29FE1560
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I am submitting you a post I did before to a similar question.  Kinda big
but there.  CFLOCATION works wonders here.  It sends you to your form again
without any form variables, thus removing the need to refresh.  Of course
the URL needs to be adjusted for your use but the one I put here works OK
with no URL variables.

--------------------

If you are about to deploy, I would not do it.  There are issues when
introducing no chache-ing in your pages that you would need to solve.  The
one that gave me more problems is back/forward buttons in the user browser.

Imagine this

1. Form a.cfm

<cfform action="b.cfm">
  <input type=text name="foo" value="var">
  <input type=button name="submit">
</cfform>

2. Form b.cfm

<cfquery name="xxx" datasource="yyy">
  insert into aTable (aField) values ('#FORM.foo#')
</cfquery>

Thanks for your input.  To continue
<a href="c.cfm">go here</a>

3. Form c.cfm

<BODY>
Just nothing.
</BODY>



This is the deal:  If you go from a, to b, to c, and then press the back
button to b.cfm you get a problem.  This is a copy/paste from IE:

-----
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button
-----
If you press refresh, then you get a double insertion.

This is how I get rid of the problem in a browser friendly fashion.  Get
b.cfm as follows (check the uppercase)

<CFIF ISDEFINED("FORM.FOO")>
  <cfquery name="xxx" datasource="yyy">
    insert into aTable (aField) values ('#FORM.foo#')
  </cfquery>
  <CFLOCATION ADDTOKEN="NO" URL="#getFileFromPath(getBaseTemplatePath())#">
</CFIF>

Thanks for your input.  To continue
<a href="c.cfm">go here</a>


etc, etc.

<Jaime/>




> -----Original Message-----
> From: Nathan Focht [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 15, 2000 9:02 AM
> To: CF-Talk
> Subject: Back Button on Dynamic pages
>
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0106_01C04EFB.D216C7C0
> Content-Type: text/plain;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello everyone,
>
>     I have a large page that people are using the browser back button to =
> return to and get that ugly 'Expired Page' message.  Is there any way to =
> have the page know that it is a history.back command and do an auto =
> refresh or the like?
>
> Thanks in Advance.
>
> Nathan A. Focht
> http://www.fusionlink.com
> (912)-398-3548
>
>
>
>
> ------=_NextPart_000_0106_01C04EFB.D216C7C0
> Content-Type: text/html;
>       charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>Hello everyone,</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I have a large page =
> that people=20
> are using the browser back button to return to and get that ugly =
> 'Expired Page'=20
> message.&nbsp; Is there any way to have the page know that it is a =
> history.back=20
> command and do an auto refresh or the like?</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Thanks in Advance.</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Nathan A. Focht<BR><A=20
> href=3D"http://www.fusionlink.com">http://www.fusionlink.com</A><BR>(912)=
> -398-3548</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><BR>&nbsp;</DIV></BODY></HTML>
>
> ------=_NextPart_000_0106_01C04EFB.D216C7C0--
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>

------=_NextPart_000_0100_01C04EF7.29FE1560
Content-Type: text/x-vcard;
        name="Jaime Garza.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
        filename="Jaime Garza.vcf"

BEGIN:VCARD
VERSION:2.1
N:Garza;Jaime
FN:Jaime Garza
ORG:Celosis, Inc.
TITLE:Director of Development
TEL;WORK;VOICE:(510) 814-3019
TEL;WORK;FAX:(510) 523-1097
ADR;WORK:;;1420 Harbor Bay Pkwy Suite 280;Alameda;CA;94502;United States =
of America
LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:1420 Harbor Bay Pkwy Suite =
280=3D0D=3D0AAlameda, CA 94502=3D0D=3D0AUnited States of =3D
America
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20001031T222652Z
END:VCARD

------=_NextPart_000_0100_01C04EF7.29FE1560--

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to