Back to Basics

Back to Basics

am 18.06.2007 11:25:40 von John Peach

How to i pass an asp array to a client side vbscript array ?

Thanks

John

Re: Back to Basics

am 18.06.2007 11:44:45 von exjxw.hannivoort

John Peach wrote on 18 jun 2007 in microsoft.public.inetserver.asp.general:

> How to i pass an asp array to a client side vbscript array ?

Assuming serverside vbs and an array of strings:



or



or

As a string by using join() and split()

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Back to Basics

am 18.06.2007 23:43:15 von Justin Piper

On Mon, 18 Jun 2007 04:25:40 -0500, John Peach =

wrote:

> How to i pass an asp array to a client side vbscript array ?

If you're careful, one way would be to take a page from JSON and return =
=

the data as VBScript source:

<% Option Explicit

Randomize
Dim a: a =3D Array(Fix(Rnd * 100), Fix(Rnd * 100), Fix(Rnd * 100)=
)
%>
"http://www.w3.org/TR/html4/strict.dtd">
Test






-- =

Justin Piper
Bizco Technologies
http://www.bizco.com/