Skip to main content
Inspiring
July 26, 2006
Answered

Simple redirect on an action page

  • July 26, 2006
  • 3 replies
  • 549 views
Hi,
I want my action page to autoforward the user after waiting 10 seconds.
Does anyone have a sample code they can share?
The url will have a CF variable. Ex. NextStep?id=#id#
Thanks!
-Mike
This topic has been closed for replies.
Correct answer Mikelaskowski
This seems to be the easiest working solution so far:
<cfoutput><meta http-equiv="refresh" content="5; url=nextpage.cfm?id=#id#"></cfoutput>
Thank you all for your help!

3 replies

MikelaskowskiAuthorCorrect answer
Inspiring
July 26, 2006
This seems to be the easiest working solution so far:
<cfoutput><meta http-equiv="refresh" content="5; url=nextpage.cfm?id=#id#"></cfoutput>
Thank you all for your help!
Inspiring
July 26, 2006
There are two ways. One is use javascript window.setTimeout(). The other way is to put Cold Fusion to sleep and use cflocation. Google coldfusion sleep to learn how to put cf to sleep.
Inspiring
July 26, 2006
You could use the meta refresh tag to do a timed refresh, or cflocation to redirect.