in reply to Re: CGI javascript AJAX - progress in real time on a web page.
in thread CGI javascript AJAX - progress in real time on a web page.
Thanks Bloodnok, my node-title-creating skills are not the same as my search-term-forming skills, obviously!
That example, though, that you found seems to have this :
I'm not sure what the header and footer tags are here, and still the web page is incomplete until the process finishes and the browser gets its </body></html> tags.
I noted this Watching long processes through CGI Aug02 which runs a bg process to do the work, but stopping the browser lets it go on, I'd rather not have that. And he bangs on about "server push" which is what I'm already doing (just printing the progress to the screen after the html headers), and the browser/server probs that could have.
Looks like I'm stuck with :
Thanks much for the help!
Caesura
That example, though, that you found seems to have this :
print '<header>'; # placeholder for your whole HTML header block print '<span id=Progress>Working...</span>'; print '<footer>'; # placeholder for the rest of your document until bu +t without </body>
I'm not sure what the header and footer tags are here, and still the web page is incomplete until the process finishes and the browser gets its </body></html> tags.
I noted this Watching long processes through CGI Aug02 which runs a bg process to do the work, but stopping the browser lets it go on, I'd rather not have that. And he bangs on about "server push" which is what I'm already doing (just printing the progress to the screen after the html headers), and the browser/server probs that could have.
Looks like I'm stuck with :
- server push
- write to a file or process and read it in a separate web page
Thanks much for the help!
Caesura
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: CGI javascript AJAX - progress in real time on a web page.
by Bloodnok (Vicar) on Sep 23, 2009 at 14:13 UTC | |
by Anonymous Monk on Sep 24, 2009 at 15:57 UTC | |
Re^3: CGI javascript AJAX - progress in real time on a web page.
by Anonymous Monk on Sep 24, 2009 at 02:42 UTC | |
by Caesura (Sexton) on Sep 28, 2009 at 15:54 UTC |
In Section
Seekers of Perl Wisdom