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 do I configure my ASP page to be called by remote scripting? by Swany
Posted: 23 Mar 01

Remember, the Java stub contacts the remote .ASP page so the .ASP page has to be configured to recieve requests from the STUB and process them accordingly.

This is done by adding the following lines to an ASP page you are going to call from remote scripting:

<!--#INCLUDE FILE="/_ScriptLibrary/rs.asp"-->
<% RSDispatch %>

RSDispatch prepares the .ASP file for execution by remote scripting.

The next thing you need is a Description object.  The Description object is a Javascript function that "exports" your functions to the remote scripting engine.

<SCRIPT RUNAT=SERVER Language=javascript>
    function Description()

Inside the description object you need to define what procedures you are calling.  If you are using Javascript in your ASP code all you have to do is:
           this.myFunction = myFunction;
        } //end of Description Function

//Function to be called by web page
function myFunction(param1, param2,...)

You can define as many procedures and functions as you need.  Simply create a this.functionname = functionname; for each function you want to export.

If you are using VBScript then you need a little extra work.  Javascript supports a function object.  You can use this function object to "trick" the Description object into working with VBScript.  

<SCRIPT RUNAT=SERVER Language=javascript>
    function Description()
           this.myFunction = Function('param1','param2','return myFunction(param1,param2)');

        } //end of description object
</SCRIPT> <!-- end of javascript -->
<SCRIPT Language=VBScript>
'Function to be called from web page
function myFunction(param1, param2)
end function
</SCRIPT> <!-- end of vbscript -->

Once you have your ASP page configured to accept remote scripting requests, you can begin to write your client side HTML code.

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