
store server-side array in client side
<%
' Declare some arrays on the server
srvNum = Array(1,2,3)
srvAlpha = Array("the", "quick", "red", "fox")
%>
<pre><script type="text/javascript">
// Recreate those arrays on the client
var clNum = [<%= Join(srvNum, ",") %>];
var clAlpha = ['<%= Join(srvAlpha, "','") %>'];
// Let's take a look
document.writeln("Numeric Array: " + clNum);
document.writeln(" Alpha Array: " + clAlpha);
</script></pre>
--
Knowing others is intelligence; knowing yourself is true wisdom. Mastering
others is strength, mastering yourself is true power. -Lao-Tzu
=-=-=
Steve
-=-=-
Quote:
> Hi all
> I want to konw is there any methods of storing the server-side ASP array
in
> client side in Javascript or VBscript