|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Preventing a REFRESH
I know this was touched on before and I re-read the thread but did not find my answer. I need a way to prevent the browser's refresh from re-submitting info. Is there a way via CF or JavaScript? anyone have something already please?Robert Orlini 05/26/04 08:57 A Robert Orlini wrote:Jochem van Dieten 05/26/04 09:06 A > I know this was touched on before and I re-read the threadTangorre, Michael 05/26/04 09:01 A I know this was touched on before and I re-read the thread but did not find my answer. I need a way to prevent the browser's refresh from re-submitting info. Is there a way via CF or JavaScript? anyone have something already please? Thanks. Robert HWW Robert Orlini wrote: > I know this was touched on before and I re-read the thread but did not find my answer. I need a way to prevent the browser's refresh from re-submitting info. Is there a way via CF or JavaScript? anyone have something already please? Use POST instead of GET as the request method. See the section about idempotent requests in RFC 2616. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje > I know this was touched on before and I re-read the thread > but did not find my answer. I need a way to prevent the > browser's refresh from re-submitting info. Is there a way via > CF or JavaScript? anyone have something already please? Set a variable: session.ranAlready = "false" Check to make sure session.ranAlready NEQ "true" Run code Set variable: session.ranAlready = "true" Just remember to find a point to clear out the session var... HTH, Mike
|
February 09, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||