Remote Scripting Calls (Sqlremote scripting)-a great tool for enhancing ASP interactivity and improving ASP response

Source: Internet
Author: User
Tags file size
I. Overview.
Remote Scripting (RS) is a Microsoft Java applet to expand the ASP functionality of a technology, RS technology to give developers on the same page combination of customers, server functions at both ends of the ability.
In the field of Dynamic Web page, used Vbscript,javascript in the client interface, do some preprocessing before submitting (submit), to interact with the server side, the entire form must be submitted to the server side of the data, The server side receives the submitted data to do some processing, and then returns the processing result to the client.
If RS technology is used, the client program interacts with the server side to bypass the form submission (submit) process, call the server-side handler directly, and then get the return result displayed on the client. For example, when a new user of a Web site registers, it is often necessary to fill out a registration form, which will contain "User name", "password" and other information, fill out the point "submit" button, this user registration information sent to the server, the server detects "user name" whether there is duplication, there is a hint of error, did not register a new user. This way, as the user fills out the entire registration form, the user does not know if his or her "username" already exists and will not be able to get the result until the entire form is submitted. RS technology can search the server database when the user has just filled in the username, and get the result of duplicate. Prompts the user to change the user name, thus may guarantee the entire registration to be successful, reduces the time which changes back and forth, the program interaction also enhances accordingly.
RS technology can improve the response speed of ASP program (ASP running speed does not improve), because the common method must submit the entire form, the form contains not only the user input data, but also includes the client address, user browser, screen information and so on many data, Commit and wait for the server to return processing results. and RS technology bypasses the process of form submission, call the program on the server directly, and then return the result, so that although the server-side processing of this piece is the same as before, the response speed is increased due to the process of removing the form submission. Typical applications such as search, refresh, etc.

Two uses remote scripting technology
In Http://msdn.microsoft.com/scripting/remotescripting/x86/rs10ben.exe download RS (latest version 1.0b, file size 143KB), after installation will be added in the Start menu " Microsoft Windows Script shortcut, which contains sample programs and detailed documentation. RS is installed in the C:intepubwwwroot_scriptlibrary directory, mainly composed of three files (rs.htm,rs.asp, rsproxy.class) using Rs has the following two steps:
1. Client Configuration
The client configuration is done on a page that is going to interact with the server, such as a page of the profile that was filled in when the user registered for registration register.htm
A. Create a JavaScript program block, referencing the rs.htm file:
<script language= "JavaScript" src= "rs.htm" >
Related Article

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.