> -----Original Message-----
> From: Georg Fendt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 05, 2001 2:23 AM
> To: [EMAIL PROTECTED]
> Subject: Timing a form
>
> ...
> QUESTION: I would like to put a timer to the form with the
> questions, that is
> a counter down and if time is over it will submit itself. I
> got a Javascript
> that does that, but
>
> 1) How can I integrate this in my program. It seems CGI.pm
> doesn't allow this
> kind of scripts for the header, most examples are for form
> validation...
To put a script in the header, add it to start_html:
$myscript = q[
finished = false;
time = 60;
... and so on
];
print $q->start_html( ... , -script => $myscript);
>
> 2) Is it possible a timer like this with Perl? Then I won't
> have problems if
> Javascript is disabled...
Perl runs on the server. Javascript runs on the client (browser).
I don't think the Refresh header solution will work, because it
won't cause the form data to be submitted.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]