Answered
Hi,
could anyone please help me out on this one? I've 2 groups of text fields (all of which have the same name, e.g.: textField_X[0], textField_X[1] and so on, and textField_Y[0], textField_Y[1], and so on). What I want to do is to populate an empty 2-dimensional javascript array with the values kept in these text fields. Is it possible? If so - how? I'm totally new to javascript so please put it as simple as for a 3-year old kid.
Thanks in advance for your help
Regards
T.M.
There is no native (predefined) 2 Dimensional JavaScript array. That's because JS is designed to be flexible so that you can create any kind of array with a little coding effort.
Like this:
var My2DArray = []; // Create new 1-D array;
My2DArray[0] = []; // Add array as entry
My2DArray[1] = [];
...etc...
Now you've got a 2D array.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script