Re: How to show output from external process

2009-12-04 Thread Shawn Milochik
On Dec 4, 2009, at 1:34 PM, Philippe Clérié wrote: > Are you using a library or did you code it yourself? What would be a good > library to start with? > > -- > > > Philippe > I use jQuery, and that makes it simple. First, have a view that returns JSON. Basically, this is all you need in

Re: How to show output from external process

2009-12-04 Thread Javier Guerra
2009/12/4 Philippe Clérié : > Are you using a library or did you code it yourself? What would be a good > library to start with? jQuery does it very handy: $("#elementID").load("http://your_url/for/the/data",{'var':value,'var2',value}); this simply does an HTTP query (with some parameters, maybe

Re: How to show output from external process

2009-12-04 Thread Philippe Clérié
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. On Friday 04 December 2009 12:27:09 Shawn Milochik wrote: > On Dec 4, 2009, at 12:10 PM, Philippe Clérié wrote: > > I

Re: How to show output from external process

2009-12-04 Thread Philippe Clérié
The HTTP refresh has a time delay interval. The application is internal with less than 20 users at this time. And it's not as if this operation is going to be done by all of them at the same time. (Now that I think about it, perhaps I also need a way to block access while the database is being

Re: How to show output from external process

2009-12-04 Thread Shawn Milochik
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 kn

Re: How to show output from external process

2009-12-04 Thread Xia Kai
Hi! I think you can just log everything in that five minute process into a file. You can then write a view function that would read that file and display the latest progress of the process. On client side, you can use some javascript to visit the view function on a regular basis, say, every 10

How to show output from external process

2009-12-04 Thread Philippe Clérié
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