Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Use ASP Array in Javascript

How can I populate an array of this nature with a dynamic asp/vbscsript array?  Since I don't know how many array elements we will have I will need to use a for-next loop.
      imagearray: [
            ["/images/crutchfield/interior1.jpg"],
            ["/images/crutchfield/interior2.jpg"],
            ["/images/crutchfield/interior3.jpg"],
            ["/images/main_flash/main_flash1.jpg"],
            ["/images/main_flash/main_flash2.jpg"],
            ["/images/main_flash/main_flash3.jpg"],
            ["/images/main_flash/main_flash4.jpg"],
            ["/images/main_flash/main_flash5.jpg"],
            ["/images/main_flash/main_flash6.jpg"]
      ],
Thank you very much.
SOLUTION
Avatar of Eyal
Eyal
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Schneider

ASKER

I need something that will take an existing array and incorporate it as follows:

var imagearray = new Array(
        <%For i = 0 To UBound(PixArray, 2) - 1%>
             ...what goes here....
       <%Next%>
)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial