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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a variable to index Server side array in Client side script

Status
Not open for further replies.

johr

Programmer
Joined
Apr 16, 2001
Messages
13
Location
US
Is it possible to use a variable as an index to a server side created array in a client side vbscript? I can access the array by using e.g. array(1,2) but not by using array(r,c). I can use variables created on the server side but am unable to increment them on the client side. Is this possible?
Thank you
 
Not directly like that, no. :-(

Communication between client and server is done via requests and responses, which require a reload of the page. You can make your server side code actually write out the client side code (thereby making it dynamic, too), but in order to send a message back to the server, you'll need to reload the page.

The only exception to that rule is remote scripting, which I don't give advice on since I have never used it. It allows you to communicate w/o reload, but seems to me to be pretty complicated (at best).

There is a good (IMHO) FAQ over in the vbScript forum that member Swany and myself collaborated on that tries to explain in a bit more detail what I've gone into here. Maybe that might make a good read.

:-)
paul
penny.gif
penny.gif
 
Paul,

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top