On Monday, April 6, 2015 at 3:16:35 AM UTC-7, BlueShadow wrote: > > Hi, > I have a function in my web2py app which takes quite a while. I like to > have a button on a page which starts the funktion but does not reload the > page for 10 minutes. The function should also dynamicly display its > progress on the page. Is there a way to do that? >
I would look at using ajax. On the first call, use the scheduler to start the long computation, and the call also sets a cookie, and activates a "busy" display that uses a timer to make the second call. The second call sees the cookie, checks for results, displays what it can, and if not done repeats the busy/timer activation. I'm interested in using this technique myself, but haven't quite got the js down to do the equivalent of $(document)ready(), but I'm hoping someone can fill in that gap. Dave /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

