The realization of Remote scripting technology

Source: Internet
Author: User
Remote scripting (RS) I've been talking about this technical term a long time ago,
What the hell is it, in fact RS is a remote call to your ASP page
(Of course the ASP page in the URL you specified) is a function or method
of technology.
The technology has three major advantages:
I. You can optimize your data flow from client to server each time
Ii. You can reuse the same function or method in different ASP pages (for multiple use)
Iii. When you connect to a remote ASP page, the page you are currently browsing is not refreshed
The above is its three main characteristics, the following talk about the specific process.
RS lets you call directly (or establish a connection to the server)
Note that this is also where it differs from RDS, through a mechanism similar to that of the agent and
The established connection is based on a disconnected recordset.
RS does not affect the current ASP page when the connection is established.
Once you have established such a connection, you will be able to call any one on your remote page
A function that is declared public. Then you can cache all the data needed by the calling page locally,
When a client's page accepts the return value of a remote Call function, these return values may be
An array, Recordset (Recordset), String
You can then use the client's data processing technology (such as the client's js,dhtml, etc.) to
The data is processed. You can use this data as if you were using the client's
The script function gets the same.
The basic principle of Rs:
RS is through "Rs." HTM "(This is a client module) and" Rs.asp "(This is a server-side module)
To establish a client-side connection to the server.
Of course, the use of a background to join the client's Java applet to achieve.
The applet delivers through HTTP the specific ASP pages and parameters that you want to invoke on the server.
The client's page makes each remote invocation request by calling a function in the local rs.htm.
So, you can imagine if you want to use RS technology, then in your ASP page you have to
Include these specific pages
How to use RS
Generally as long as you install the VI, you have the things you need.
The main is the following three files: Rsproxy.class, rs.asp, rs.htm.
Put them in this directory wwwroot_scriptlibrary
Client's writing:
Then include these files at the front of the page you want to use RS:
<script language= "JavaScript"
src= "Http://YourServer/_ScriptLibrary/rs.htm" >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.