I have an array in my asp code that I want to access in a javascript. I found an example of doing this, but it was for a non-array var. I can access an individual array element via:
I can also access the "count" for the array, so I can get the entire thing with a loop. But is there a way for me to get the entire array in one hit? I've tried the following:
Neither of those seemed to work.
Any suggestions?
Code:
var myVar = "<%=arrImages(0)%>";
I can also access the "count" for the array, so I can get the entire thing with a loop. But is there a way for me to get the entire array in one hit? I've tried the following:
Code:
var myArray = Array()
myArray = "<%=arrImages%>"
or
myArray = "<%=arrImages()%>"
Neither of those seemed to work.
Any suggestions?