Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing value from JavaScript to VBscript

Status
Not open for further replies.
Aug 16, 2001
26
0
0
NZ
I wanted to pass a the value from a JavaScript variable to an VBscript variable. I don't want to use Hidden Fields for this purpose because i'm trying to pass an entire two dimension ARRAY.

Please help me.
 
Passing variables from javascript to vbscript is not a problem, passing an array is a problem:

<SCRIPT LANGUAGE=&quot;vbscript&quot;>
sub receiveJavaArray(varIn)
msgbox isarray(varIn)
msgbox varIn
end sub
</script>
<script language=&quot;javascript&quot;>
var arrTest = new Array();
var arrTemp = new Array();
arrTemp[0] = &quot;hello&quot;;
arrTemp[1] = &quot;There&quot;;
arrTest[0] = arrTemp;
arrTemp[0] = &quot;how&quot;;
arrTemp[1] = &quot;are&quot;;
arrTest[1] = arrTemp;
receiveJavaArray(arrTest);
</script>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top