Previous | Next | (P-PDF) JavaScript
Topic: Re: Javascript Limitation (Via Email)
Conf: (P-PDF) JavaScript, Msg: 27677
From: prodok
Date: 9/27/2001 05:05 AM
There is another approach to problems you describe. The limit of
_individual_ JavaScripts is indeed 32kByte. Yeah, I have run into
that a lot of times... BTW, note that attachments are not processed
in the forums's mailing list gateway (which is good). You might make
it available for download and send the links to the forum.
But what you can do, for example, is creating a multidimensional case
array. Every element of this array is an array of a given structure
with the relevant information for the cases. Each of these cases can
be stored in its own document level script, and your calling routine
can be set up that it takes care of an undefined number of selections.
The size of arrays is not limited by the 32 kByte, but essentially
only by the available amount of memory for the Viewer application.
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 am having a problem with keeping the code in the Javascript
>function box. I know there may be a limit on the size of the
>javascript that you can have in there. Right now it is at 14k. I'm
>trying to paste javascript into the function that is only 18k.
>
>The form should come up and the user will need to select a state.
>Once they select the state, it will automatically populate a field
>on the first page with an english statement and on the second page
>with the spanish statement for that state. It works now, but if more
>cases are added to the JavaScript, when I try to save it, the
>JavaScript disappears completly. It will not save and the
>functionality does not work.
>
>The PDF that is attached works. If the javascript that is in the txt
>document is pasted over the current javascript in the file, it will
>not work.
>
>Does anyone know how to fix this problem? Is the javascript to big
>or can someone tell me if it can be broken apart?
>