House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Newbie (CF-Newbie)

cflocation

Author:
Justin Scott
02/17/2010 08:57 AM

> this works fine, but I would like to add 2 things: > (1) a delay; that is, to not re direct for lets say 5 seconds > (2) a countdown saying the page will re direct in X seconds Hi Johnny, if that's what you want to do then you need to return a page to the visitor with JavaScript code to do the countdown and handle the redirect.  The CFLOCATION tag handles the redirect at the HTTP level by instructing the browser to make another request (i.e. no page is returned and the current request is aborted).  To do what you want you will need to take out CFLOCATION and return HTML with the JavaScript code to do what you want on the page.  Be sure to include a link for those who have JavaScript disabled so they have a way to continue. -Justin


Search cf-newbie

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29