Previous | Next | (P-PDF) JavaScript
Topic: Javascript Limitation
Conf: (P-PDF) JavaScript, Msg: 27802
From: lmp
Date: 9/29/2001 02:09 PM
The Javascript is limit 32k. If you write javascript over 32k, the program is automatically disappear. You can divide your program into 2 functions(for example
1. list()
2. secondlist()
but you have to put the variable by global. The global will keep the variale for your document.
My had the project about dynamic paragraphs into document. I write alot of javascripts it happens same
as to you. I can divide the functions into 2,3,4....and i put the global variable to save alot of writing for me. You can try that way. It will work because it work on me.
minh
On 9/27/2001 4:38:00 AM, sperkins wrote:
>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?