Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coldfusion Looping every 4 hours

Status
Not open for further replies.

charlesjsc

Programmer
Sep 14, 2007
15
US
Hi,
I am trying to LOOP over a flash file 4 times a day. I have tried the <cfloop> with every parameter there is. Maybe JavaScript? All i get is it looping right then 8 times instead of waiting and hour, then running the flash file again. Can you PLEAE help me?
 
Build your action page with the loop you want. Then call that page from the CFAdministrator 4 times a day. CFAdministrator > Debugging and logging > Scheduled tasks.

Cheers,

Bluetone
 
Ok, that sounds good, but will it do a "Index.cfm" file?
 
how many of your users are going to stick around and wait 4 hours to see the next flash movie?

what are you really trying to accomplish?

r937.com | rudy.ca
 
You can name it any legal name you want. I wouldn't recommend index.cfm as that would be confusing from a development standpoint.

Cheers,

Bluetone
 
It won't kick of. I even copied and pasted it in the URL part of the scheduler. Is there something I have to turn on in Administrator?
It's on my I don't see any conflict there. UGH! And when I click to tell it to run in Scheduler, nothing happens, but it runs fine in IE.
 
Are you using an absolute path in the Administrator?

Cheers,

Bluetone
 
I am trying to LOOP over a flash file 4 times a day. I have tried the <cfloop> with every parameter there is. Maybe JavaScript? All i get is it looping right then 8 times instead of waiting and hour, then running the flash file again. Can you PLEAE help me?"

Please explain exactly what results you want, because I think we are all thinking something different then you are. What is the ultimate result and goal of this script you are writing?

Kevin
 
I just want a flash movie to run for 3 minutes, then 4 hrs later run again. While it's not running I will display a quote of the day.
 
sort of what I thought.

The concept of a web site being stateless plays in here.

When no one is visiting a web site, that web site is doing NOTHING (not playing a flash movie, not serving html, etc)So with our server side language though, we can see how much time has elapsed or see what time of day it is, and perform actions as needed.

So, do you want the movie to play at arbitrary times, such as 10am, 2pm, 6pm, regardless of the visitor? or play the movie when a visitor comes, regardless of the current time, then don't show the visitor that movie again until 4 hours has passed?




Kevin
 
thanks kevin

that's basically what i wanted to know too

good do know that there isn't supposed to be a user sitting at her browser for 4 hours waiting to see the next movie


:)

r937.com | rudy.ca
 
The difficulty here is going to be that, as I said, there is nothing happening if there is no visitors. So if someone comes to the web site at 4 hours and 1 minute are you expecting them to see a flash movie playing at the 1 minute mark? This might be possible with some action script controlling a flash movie player?

Kevin
 
No, this is out in the lobby and runs during the day. No interaction required!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top