Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VBScript FAQ

Microsoft Remote Scripting

How can I run server code without submitting a form by Swany
Posted: 23 Mar 01 (Edited 25 Apr 03)

Remote Scripting allows a client side script, be it Javascript or VBScript to access functions in remote ASP code without submitting a form to the server.

Yes, you heard me right, access code on the server without using a submit button, and without making a browswer round trip.

This is one of Microsoft's jewels that nobody knows about.  It works with both IE and Netscape, is simple to implement and works great both on Intranets and the Internet.  If you are writing code strictly for an Intranet and are using IE, you may want to use RDS as an alternative to remote scripting.

It works like this:
Web Browser <--> Java Stub <-(HTTP)-> Web Server (ASP)

The web browser executes a Java applet that communicates transparently with the web server.  Script on the web browser calls RSExecute() to run code that resides on the server.  

Calls can be made synchronously or asynchronously.  Asynch calls are made using callbacks into Javascript or VBScript code.

Examples can be found in the other FAQs in the Remote
Scripting category.  I've included both client and server
examples and instructions for setting everything up.

Find out more at http://msdn.microsoft.com/scripting

Back to VBScript FAQ Index
Back to VBScript Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close