Are you using a library or did you code it yourself? What would be a good library to start with?
-- Philippe ------ The trouble with common sense is that it is so uncommon. <Anonymous> On Friday 04 December 2009 12:27:09 Shawn Milochik wrote: > On Dec 4, 2009, at 12:10 PM, Philippe Clérié wrote: > > I am working on an application that requires getting some data offsite, > > process it and load the site database. This process can take up to five > > minutes. I would like to be able to capture the output and present it > > to the user so he knows how far along he is and whatever errors he > > needs to know about. > > > > I was thinking of using a page with HTTP Refresh and show the current > > output of the process via a pipe. I'm not sure how feasible that is. > > Are there any know solution to this type of situation? > > > > Thanks for any tip!! > > How about AJAX? You could have JavaScript that sends a request to one of > your Django URLs, which has a view that returns the current status. You > could than use JavaScript to update the status on the page without any > reloading. > > I do something similar with a Web page that does an API lookup. The page > loads, then an API call check's a users account balance. Once the result > comes back, the balance is shown on the page. > > Shawn > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. To post to this group, send email to > django-us...@googlegroups.com. To unsubscribe from this group, send > email to django-users+unsubscr...@googlegroups.com. For more options, > visit this group at http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.