Previous | Next | (P-PDF) JavaScript
Topic: Re: JS 'Date' won't work (Via Email)
Conf: (P-PDF) JavaScript, Msg: 28242
From: prodok
Date: 10/7/2001 07:16 AM
Look at the example you find in the Acrobat JavaScript Object
Specification, and you will see that your printd() method misses an
argument.
Hope, this can help.
Max Wyss
PRODOK Engineering
Low Paper workflows, Smart documents, PDF forms
CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37
e-mail: mailto:max@prodok.com
http://www.prodok.com
[ Building Bridges for Information ]
______________________
Shameless Plug:
I will have presentations and pre- and post-conference workshops at
the .PDF2001 West Conference in Scottsdale, AZ, Nov. 5 to 7, 2001.
More details at http://www.pdfconference.com.
Workshops:
Nov. 4: Implementing Business Processes based on PDF
Nov. 8: Enhancing PDF Forms
_________________________
>I'm new to JS. My simple script for displaying the
>date of a newly reset form errors for no reason, at
>least that I can see. The script was pulled from
>this site as well as Adobe's JS Guide.
>
>Script:
>{var f = this.getField("Date")
>f. value = util.printd("mm/dd/yyyy");}
>
>Error states:
>"JavaScript error in Format Field script of field
>"Date" operation failed.
>