Client side VS server side 
Author Message
 Client side VS server side

How can i pass VBScript variable from server side, ASP, to client side
and and vice versa ?


Sat, 08 Feb 2003 03:00:00 GMT  
 Client side VS server side
you need to look into remote scripting

http://msdn.microsoft.com/scripting/remotescripting/default.htm


Quote:
> How can i pass VBScript variable from server side, ASP, to client side
> and and vice versa ?



Sat, 08 Feb 2003 03:00:00 GMT  
 Client side VS server side
Although you could look into Remote Scripting, as suggested, if you are
simply wishing to pass a variable from Server to Client and vice versa,
then I can suggest the following techniques:

Server to Client:

In the response, write a piece of client side script, but initialise a
variable with the server value, something like this:

Response.Write "Dim ClientVariable"
Response.Write "ClientVariable = " & ServerVariable

You will then have a variable that you can use at the client side with the
same value.  You might not want you implement it quite like this, and
obviously you'll need to modify it for strings, and it won't work for
objects, but you get the general idea.

Client to Server:

Just use a form, or pass it in the URL as a query parameter.

Hope this helps.

Steve.



Sun, 09 Feb 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ?client-side vs server-side cursors

2. Client side VS server side..

3. dumb question - fundamentals of client-side vs server-side vbscript

4. Client-Side vs Server-side ASP/JScript

5. DLLs -- server-side vs client-side

6. ADO-Access2000: Server-side vs Client-side cursor

7. server side (adUseServer) vs client side (adUseClient)

8. Server-Side vs Client-Side script

9. Using Server side Vs OnClick Client side

10. Amazing no one knows this!!! Client side vs Server Side cursors

11. attached Contact Item on server-side becomes attached Mail Item on client-side

12. How Can I Pass Data Between the Server Side and the Client Side VB/JScript

 

 
Powered by phpBB® Forum Software