Converting VBScript Array to Javascript Array in the same ASP Page (1D and 2D)

by Anand Venkatraman

We come across lot of times a need to convert an Array from ASP page to Javscript, so that we can manipulate in the HTML form using Javascript. Here is an example of how to do that. I have two include files, one for 1D array, one for 2D array and one example page calling those files. You can modify the array, ie calling from a Database (result set) or a COM Component (VB Array) and have the array in Javascript and populate HTML forms and manipulate. Some documentation is available in the code itself. Happy programming!!!
Any questions regarding these files, please feel free to contact anand_venkatraman@yahoo.com