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.