Web page loading method, device and system based on Ajax request

A technology for page loading and web pages, applied in the Internet field, can solve the problems of unable to obtain body body, unable to Ajax request security monitoring, etc., to achieve the effect of improving security

Pending Publication Date: 2020-05-26
北京指掌易科技有限公司
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the inventor found in the process of implementing the present invention that at least the above method has the following defects: Ajax requests are usually triggered by a web view control (such as WKWebView), and when the c

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Web page loading method, device and system based on Ajax request
  • Web page loading method, device and system based on Ajax request
  • Web page loading method, device and system based on Ajax request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] figure 1 A schematic flow diagram showing a method for loading a web page based on an Ajax request according to an embodiment of the present invention, as figure 1 As shown, the method includes:

[0036] Step S110: Inject the Hook code for intercepting the page loading function into the webpage view control, and intercept the Ajax request through the Hook code when the Ajax request triggered by the page loading function is ...

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 network page loading method, device and system based on an Ajax request. The method comprises the steps that Hook codes used for intercepting a page loading function are injected into a webpage view control, and when an Ajax request triggered by the page loading function is detected, the Ajax request is intercepted through the Hook codes; forwarding the intercepted Ajax request to a native client, so that the native client obtains response content corresponding to the Ajax request from a server; and response content corresponding to the Ajax request is received and obtained by the native client, and the response content is sent to a page loading function in the webpage view control, so that the page loading function loads a network page according to the response content. In the mode, the complete content of the Ajax request can be intercepted through the Hook code, so that the native client can conveniently obtain the complete body in the Ajax request, and then security monitoring is realized for the Ajax request, so as to improve the security of browsing a webpage by a user.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to an Ajax request-based web page loading method, device and system. Background technique [0002] Ajax (Asynchronous Javascript And XML, asynchronous JavaScript and XML) refers to a web development technology for creating interactive web applications. Through Ajax technology, it is possible to quickly update part of the content of a web page without reloading the entire web page. Specifically, by exchanging a small amount of data with the server in the background, Ajax can enable the webpage to be updated asynchronously. Therefore, a part of the webpage can be updated without reloading the entire webpage. [0003] However, the inventor found in the process of implementing the present invention that at least the above method has the following defects: Ajax requests are usually triggered by a web view control (such as WKWebView), and when the control handles an Ajax request, th...

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): G06F16/957
CPCG06F16/957Y02D10/00
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