How to pass an n-dim array from VBScript to JScript within an ASP page 
Author Message
 How to pass an n-dim array from VBScript to JScript within an ASP page

I am trying to pass an array from VBScript to JScript.  I'm not sure how to
initialize a blank array of known dimensions in JScript either.  Here's what
I have...

<script language="JavaScript">

var arrJSArray as new Array()

arrJSArray = <%= arrVBArray %>

</script>

Can you give me sample code for 2 cases...  2 dimensional array, and
n-dimensional array where n is not known.

Thanks



Wed, 05 Feb 2003 14:50:12 GMT  
 How to pass an n-dim array from VBScript to JScript within an ASP page
JScript doesn't have arrays with more than one dimension. But you can mimic this
feature with arrays of arrays.

Klaus

Quote:

> I am trying to pass an array from VBScript to JScript.  I'm not sure how to
> initialize a blank array of known dimensions in JScript either.  Here's what I
> have...

> <script language="JavaScript">

> var arrJSArray as new Array()

> arrJSArray = <%= arrVBArray %>

> </script>

> Can you give me sample code for 2 cases...  2 dimensional array, and
> n-dimensional array where n is not known.

> Thanks



Thu, 06 Feb 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. HELP WITH removing item from a 2 dim array within ASP Form

2. Passing a Double Dim Array to VBScript

3. Passing array of strings from ASP (JScript) to ATL COM

4. Passing JScript array to another web page

5. calling ASP from within VBScript/JScript ???????

6. calling ASP from within VBScript/JScript ???????

7. Passing Arrays between ASP/VBScript and ActiveX Components...

8. Passing Multi-Dimensional arrays to COM objects from VBScript/ASP

9. NEED HELP W/ ASP Creating 2 dim Arrays

10. Passing array between ASP script(vbscript) and javascript

11. Newbie: ASP dimming array problems

12. Passing array from ASP (VBScript) to DLL and back

 

 
Powered by phpBB® Forum Software