PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Yes, I have forms with timers. The time starts when the form opens in the
browser, and ends when the user clicks a button. It would be no problem to
periodically send a message to the server to let it know the form is still
in use, it would not need user intervention.
At document level I have
var now = new Date();
function timeScore()
{
var openTime = now.getTime();
now = new Date();
var finishTime = now.getTime();
return (finishTime - openTime);
}
so that the timing starts when the pdf opens. When I want the timing to
stop, the user clicks a button and various things happen, including
f = this.getField("timeTaken");
f.value = timeScore();
The value of the field "timeTaken" is sent to the server when the form submits.
You should be able to do something similar which will ping the server at
regular intervals.
Hope this helps
Fran
>Is there any way to set up a timer in a PDF. When my PDF interacts with my
>server, I create a session on the server. I would like to close that
>session as soon as possible. I would like to close the session when the
>form is no longer active. As it stands, the server waits 20 minutes
>and closes the session if there is no activity.
>
>In our Java applets we set up a timer to ping the server every minute to
>indicate the form is still alive. If no pings are received within a
>minute, I can close the session. I can't figure out how to run a timer in
>PDF. Does anyone have any advice for solving this problem?
___________________________________________________
Frances Griffin
Department of Mathematics
Division of Information and Communication Sciences
Macquarie University, Sydney.
Ph: 61-02 9850 8923
http://www.maths.mq.edu.au/~fgriffin/
http://rutherglen.ics.mq.edu.au/~macqtex
http://galifrey.triode.net.au
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html