Partial updating method based on Ajax webpage

An update method and local technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as overloading, and achieve the effect of reducing load

Inactive Publication Date: 2014-03-12
王锦忠
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Traditional web pages (not using AJAX) must reload the entire web page if the content needs to be updated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The partial update method based on Ajax web pages, the steps are as follows:

[0015] Click the refresh button of the browser to get the updated content;

[0016] Use MSXML to process it and create an XMLHttpRequest object;

[0017] Update partial content of the webpage;

[0018] Send requests to the backend;

[0019] build xmlHttp;

[0020] Just wait for the server to respond.

[0021] When the value of the xmlHttp attribute is 4, it means that the request is completed and is in the corresponding ready state.

[0022] The status code should always be 220.

[0023] The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a partial updating method based on an Ajax webpage. The method includes the steps of clicking a button for refreshing of a browser to obtain updated content, processing the updated content with an MSXML to create an XMLHttpRequest object, updating partial content of the webpage, sending a request to a background, building an xmlHttp and waiting a server to respond. When the attributive value of the xmlHttp is 4, it is indicated that the request is finished, a corresponding ready state is reached, and a status code always maintains at 220. The method has the advantages that transient white screen, flashing and delaying phenomena cannot occur during loading of the webpage, load of the server is greatly reduced and a user feels smoother.

Description

technical field [0001] The invention relates to a computer operation method, in particular to a partial update method based on Ajax web pages. Background technique [0002] AJAX is a technology that can update parts of a web page without reloading the entire web page. AJAX is a technique for creating fast and dynamic web pages. AJAX enables web pages to be updated asynchronously by exchanging small amounts of data with the server in the background. This means that parts of a webpage can be updated without reloading the entire webpage. Traditional web pages (not using AJAX) must reload the entire web page if the content needs to be updated. There are many examples of applications using AJAX: Sina Weibo, Google Maps, Kaixin, etc. In web applications, we often want to obtain updated information on web pages, such as obtaining the latest mailing list, displaying the latest sports lottery announcement, changing the verification code for user login, verifying whether the user ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F16/9574
Inventor 王锦忠
Owner 王锦忠
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products