Re: Generic web-dev question: Best way to do a processing page?
On Sat, May 1, 2010 at 7:22 AM, Joshua Russo <josh.r.russo@gmail.com> wrote:
> This is mainly just curiosity at the moment. How do you create a
> "processing" intermediate page, like you see on travel sites when they are
> looking for the rates? I would always avoid this if at all possible, but
> sometimes you have a process that takes longer than usual.
some ideas:
- a view checks if the task is done, if so, shows the result. if not,
uses another template with the 'wait a sec..' message and a 'refresh'
HTML header that reloads the page after a few seconds.
- the 'wait' page starts with a javascript that does a periodic AJAX
call to check if it's done. when it's so, redirects to the 'result'
page.
--
Javier
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home