Welcome Guest, Not a member yet? Register   Sign In
sleep then repeat function in controller
#4

[eluser]obiron2[/eluser]
What exactly are you tring to accompish with this.

If you are looking for a page refresh, it won't work becasue the client will not have requested the page so will not be expecting repeated output. You would need to do this client side with some javascript to refresh the page.



If you are trying to regularly schedule an activity, you would be better to call a function that checks the last time it was run and runs it again if X minutes have passed and add it to some of the controller calls from the client.


Messages In This Thread
sleep then repeat function in controller - by El Forum - 11-20-2008, 12:18 PM
sleep then repeat function in controller - by El Forum - 11-21-2008, 01:18 AM
sleep then repeat function in controller - by El Forum - 11-21-2008, 02:25 AM
sleep then repeat function in controller - by El Forum - 11-21-2008, 07:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB