Question
delay before cflocation
I would like to have a delay in order to display some text
before calling cflocation.
<cfif #URL.option# EQ 'REPORT'>
Running Report<br>
<cfloop index = "LoopCount" from = "1" to = "8000000"></cfloop> <!--- any better way to create a delay?? --->
<cflocation url="remit_action.cfm?id=#URL.id#&source=#URL.source#&option=#URL.option#">
</cfif>
It appears the cf 'builds' the whole page before being displayed, therefore, when it hits the cflocation it simply moves on to the next page.
What I really need is do display a message, such as "running report", until the file exists. I can use cfif FileExists alright, but the delay has me stumped.
<cfif #URL.option# EQ 'REPORT'>
Running Report<br>
<cfloop index = "LoopCount" from = "1" to = "8000000"></cfloop> <!--- any better way to create a delay?? --->
<cflocation url="remit_action.cfm?id=#URL.id#&source=#URL.source#&option=#URL.option#">
</cfif>
It appears the cf 'builds' the whole page before being displayed, therefore, when it hits the cflocation it simply moves on to the next page.
What I really need is do display a message, such as "running report", until the file exists. I can use cfif FileExists alright, but the delay has me stumped.