On Thu, Jan 15, 2009 at 2:05 PM, elspiko <[email protected]> wrote:
>
> Thanks for your reply Bruno, my plan was to use AJAX anyway, as I
> thought this would be the only method, I should have probably
> mentioned this before, I apologise.
>
> In which case I'm still stuck as to how to return the data. Could I
> maybe have an example of how i could do this?


First you need to setup a view that will return the status of the
backup process, then you setup a timer in your javascript to make
calls to that view every 250ms or so, and terminate when it receives
the done command.

psdo-code: http://dpaste.com/109576/ would produce something like;

/path/to/file1.txt ... Backup complete
/path/to/fil2.txt ... Backup complete
.
.
.
/path/to/filen.txt Backup in progress

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to