Thanks. That occurred to me. I think I tried it once before and encountered a problem. If the user tabs off the field, I am not sure that the focus that is reported is the field that the user tabbed to rather than the field triggering the script. I may explore this again.
Michael Shupe
Project Leader
AnyDoc Software, Inc.
813 222 0414
[EMAIL PROTECTED]
www.anydocsoftware.com
-----Original Message-----
From: J Bealer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 23, 2003 9:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PDF-Forms] PDF Field events and trips to the server
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Mike,
I assume you are using submitForm to pass your data back to a script.
If so, have you tried setting the value of a hidden field to the name of the
field that the focus was on?
That way when the FDF comes back from the server you can pass back the name
of the field you were in to the PDF which can then use it to setFocus as the
FDF loads and the calculate event fires.
Another alternative might be to set a global or doc level (may not be kept
in scope?) variable to be used in the same way.
Jub
>From: Mike Shupe <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: [PDF-Forms] PDF Field events and trips to the server
>Date: Thu, 23 Oct 2003 16:14:51 -0400
>
>I am creating PDF forms which interact with my server. I would like to be
>able to tab off a field and have the contents of the field validated by my
>server. For instance, we support more date formats than PDF so, when the
>user tabs off a text field which is to contain a date, I send a request to
>the server to validate it. I may also runs scripts on the server at that
>time. To do this, I attach _javascript_ to the format event.
>
>
>
>This successfully triggers a command to the server which comes back and the
>form is updated. Unfortunately, I also lose the focus. Instead of focus
>going to the next field in the tab order, it just disappears and the user
>has to click on a field to continue. I have tried modifying the code to
>trigger on validate or calculate events but this only makes things worse.
>
>
>
>Can anyone give me some clues as to how to both go to the server and get
>the
>focus on the next field?
>
>
>
>Michael Shupe
>Project Leader
>AnyDoc Software, Inc.
>813 222 0414
>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> www.anydocsoftware.com
><http://www.mti-info.com/Site/images/Special/Signature/signature.gif>
>
>
>
_________________________________________________________________
Surf and talk on the phone at the same time with broadband Internet access.
Get high-speed for as low as $29.95/month (depending on the local service
providers in your area). https://broadband.msn.com
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
