Talking about the technology of remote data acquisition without refreshing

Source: Internet
Author: User
Tags set time
Data | refresh | No refresh refresh technology has gone through several stages:

First, add a key in the HTML file header, so that the page in the set time to jump to the specified page (including itself);

For example:


Second, use the framework and then in the JS script to refresh the contents of the frame.

The above two ways will reload the page, that is, refreshing, the feeling is not very good! So no refresh technology appears.

Thirdly, it is a kind of modification to the second way.

A long width in many frames is set to 0 so that it is not visible, and then the contents of the hidden frame are refreshed by the script, and the frame content is "written" into a browsable frame. Most of the early chat rooms used this technique.

The true sense of no refresh technology is the following two technologies, which can even achieve partial refresh:

Four, XMLHTTP technology, you can access ASP pages through XMLHTTP, ASPX pages, WebService and so on.




V. WebService, use the WEBSERVICE.HTC component to access the Web service.

var OBJ;
function init (obj,op,id)
{
Obj=obj;
? Obj.useservice ("Admin/dataoperation.asmx?") WSDL "," GetBody ");
? OBJ.getBody.callService (Show,op,id);
}

function Show (Result) {
Obj.innerhtml=result.value;
}

Six, Remoting, the use of Remoting can also be achieved without refreshing technology. Because the remoting component can provide a variety of access including HTTP, it is equivalent to a webservice when accessed as HTTP.




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.