Prev: FAQ Topic - My element is named myselect[], how do I access it? (2010-08-09)
Next: Browser history
From: goldtech on 8 Aug 2010 22:19 Hi, New to Javascript - mostly into server side languages but think I need JS to do the following : In PHP I run exec (...), so I'm doing a cmd-line program and running it within the script. The program ( it's ffmpeg ) gives it's status via stderr. I want a way to write status messages or progress on the web page so the user will know how long it will take. I think I need a client-side language like JS to do this. How can I catch stderr and show it on the web page to a user? In roughly real-time? If you could link me or give me an idea of the way I will delve into Javascript and learn how. Thanks. Lee
From: rf on 9 Aug 2010 06:13 "goldtech" <goldtech(a)worldpost.com> wrote in message news:64a3e33e-9007-4682-9b6e-c06bb9439f7c(a)5g2000yqz.googlegroups.com... > Hi, > > New to Javascript - mostly into server side languages but think I need > JS to do the following : > > In PHP I run exec (...), so I'm doing a cmd-line program and running > it within the script. The program ( it's ffmpeg ) gives it's status > via stderr. And this program (and your PHP script) is running on the server. The client does not yet have the page, as the server side script is still running. The client is, well, waiting for a reponse from the server. > I want a way to write status messages or progress on the > web page so the user will know how long it will take. I think I need a > client-side language like JS to do this. And the client side language runs where? On the client. After the server side script has processed the request and sent it to the client and terminated. > How can I catch stderr and show it on the web page to a user? In > roughly real-time? You probably can't. You could, however, provide some more information on what exactly what you are attempting to do.
From: Evertjan. on 9 Aug 2010 07:14 Denis McMahon wrote on 09 aug 2010 in comp.lang.javascript: > On 09/08/10 03:19, goldtech wrote: > >> How can I catch stderr and show it on the web page to a user? In >> roughly real-time? > > Catching the output of stderr from an exec'd server side application is > way outside the scope of javascript. Not so. Serverside Javascript could perhaps see the result of an shell execution, returning a specifying result in html to the client in miliseconds. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
From: rf on 9 Aug 2010 07:38 "Denis McMahon" <denis.m.f.mcmahon(a)googlemail.com> wrote in message news:4c5fe4b4$0$13034$bed64819(a)gradwell.net... > On 09/08/10 11:13, rf wrote: > >> You could, however, provide some more information on what exactly what >> you >> are attempting to do. > > The impression I got was that he wants php to kick off some external > program on the server in response to a request, then send a "job in > progress" response page to the client, then update that page on the > client with progress messages in response to progress output on the > server from his external program. From the OP: <quote> I think I need a client-side language like JS to do this. </quote>
|
Pages: 1 Prev: FAQ Topic - My element is named myselect[], how do I access it? (2010-08-09) Next: Browser history |