"Program Working" web page ?
am 22.12.2007 21:35:49 von unknownPost removed (X-No-Archive: yes)
Post removed (X-No-Archive: yes)
still just me wrote:
Hi still
>What is/are the technical approach(s) used to display "program
>working" web pages?
Exactly the same as you would use if your program were written in C,
Pascal, VB, or any other programming language.
Why don't you ask in a NG that is actually dedicated to discussing web
programming instead of in a NG that is about the Perl programming
language.
jue
Post removed (X-No-Archive: yes)
still just me wrote:
> On Sat, 22 Dec 2007 20:45:06 GMT, Jürgen Exner wrote:
>> still just me wrote:
>>> What is/are the technical approach(s) used to display "program
>>> working" web pages?
You may want to check out this article:
http://www.stonehenge.com/merlyn/LinuxMag/col39.html
>> Exactly the same as you would use if your program were written in
>> C, Pascal, VB, or any other programming language.
Jürgen, your fanatic resistance to anything CGI is tiresome!
> there are no active groups that I know of that are dedicated to a
> discussion of CGI programming at this detailed level without being
> bound to some specific programming language.
But this list might be worth trying:
http://lists.cpan.org/showlist.cgi?name=beginners-cgi
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
still just me wrote:
> What is/are the technical approach(s) used to display "program
> working" web pages?
>
[...]
>
> I have a program that sometimes takes a little bit of time to run and
> unless the used watches the browser indicators, I'm concerned that
> they will terminate it early (before the results are sent to them).
> I can think of some ways to do this with Javascript in the client, but
> are there techniques to do this with cgi headers that are server
> driven?
>
My solution is to send some characters to visitor's browser and some
"needless" spaces to overfill browser's buffer.
print "program working, please wait ";
foreach my $cycle (1..10)
{
print ".", ' 'x512;
sleep 2;
}
print "
Done";
Maybe this help you.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)
Please reply to
>>>>> "still" == still just me
still> Well, because many of the folks here who write Perl are well versed in
still> using Perl for CGI applications
I can accept "some", but "many" is a bit strong. I know *many* people who
have *never* written a CGI app in Perl, and yet are quite versed in Perl.
Heck, I was even in that camp for the first half dozen years of my Perl
experience.
still> and I know that some of them likely
still> have the expertise to answer the question. In addition, there are no
still> active groups that I know of that are dedicated to a discussion of CGI
still> programming at this detailed level without being bound to some
still> specific programming language.
This is also incorrect. CIWAC (comp.infosystems.www.authoring.cgi) certainly
covers this. I haven't poked my head in there lately, but it's definitely a
CGI group that is language agnostic.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Randal L. Schwartz wrote:
> still> there are no
> still> active groups that I know of that are dedicated to a discussion of CGI
> still> programming at this detailed level without being bound to some
> still> specific programming language.
>
> This is also incorrect. CIWAC (comp.infosystems.www.authoring.cgi) certainly
> covers this.
s/covers/covered/
That group has been defunct for 15 months, so your mentioning of ciwac
won't likely make a difference.
I thought you were aware of it, btw.
http://groups.google.com/group/comp.lang.perl.misc/msg/b89d5 979881bffef
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
>>>>> "Gunnar" == Gunnar Hjalmarsson
Gunnar> I thought you were aware of it, btw.
Gunnar> http://groups.google.com/group/comp.lang.perl.misc/msg/b89d5 979881bffef
Ahh, oh, yeah, ok. Hmm. I thought that it had started up again. Darn.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Post removed (X-No-Archive: yes)
* still just me
> What is/are the technical approach(s) used to display "program
> working" web pages?
How about using
on the result page? Generate the result page at start of the program
with a "program running" message and regenerate the page with the actual
results later.
>
> I understand the cgi cycle well... and I'm thinking that if I send a
> response page to the user with "program working" that then I'm all
> done - I can't send another page of output with the program results.
>
> I have a program that sometimes takes a little bit of time to run and
> unless the used watches the browser indicators, I'm concerned that
> they will terminate it early (before the results are sent to them).
> I can think of some ways to do this with Javascript in the client, but
> are there techniques to do this with cgi headers that are server
> driven?
>
> Thanks,
Regards
Jahagirdar Vijayvithal S
--
- "I don't suffer from insanity, I enjoy every minute of it." -- Charles Manson
Jahagirdar .V.S 91-80-25099129(O) 91-80-28540394(R)
IC Design Engineer
Texas Instruments (India) Ltd.