Method and system of retrieving Ajax web page content
First Claim
1. A method of retrieving web page content, the method comprising:
- obtaining information of web page codes;
retrieving scripting language information based on the information of the web page codes, the scripting language information being included in one or more scripting language files;
determining a type of one scripting file of the one or more scripting language files based on a filename of the one scripting file,in an event that the one scripting file is a framework file;
obtaining asynchronous scripting language property values, anddetermining at least one function that includes a call associated with an asynchronous web application of a web page associated with the web page codes using the asynchronous scripting language property values, andin an event that the one scripting file is a non-framework file, obtaining the at least one function based on a corresponding asynchronous scripting language property value and codes associated with the function as defined in the non-framework file; and
triggering the at least one function that comprises at least one asynchronous scripting language call to obtain web page content generated.
2 Assignments
0 Petitions
Accused Products
Abstract
The present disclosure describes a method and a system of retrieving Ajax web page content. The method of retrieving Ajax web page content includes: obtaining information of web page codes; retrieving JavaScript information in the information of the web page codes; analyzing the JavaScript information to determine function(s) that include(s) Ajax call(s) in the web page codes; and triggering the determined function(s) that include(s) the Ajax call(s) to obtain web page content. Through analyzing JavaScript information in web page codes, the above technical scheme obtains function(s) that include(s) Ajax call(s) in the web page codes and further triggers the function(s) to obtain web page content generated thereby, thus achieving retrieval of dynamic content in an Ajax web page. Using the above technical scheme, a search engine can collect more complete web page contents and hence provide a better search service to users.
35 Citations
16 Claims
-
1. A method of retrieving web page content, the method comprising:
-
obtaining information of web page codes; retrieving scripting language information based on the information of the web page codes, the scripting language information being included in one or more scripting language files; determining a type of one scripting file of the one or more scripting language files based on a filename of the one scripting file, in an event that the one scripting file is a framework file; obtaining asynchronous scripting language property values, and determining at least one function that includes a call associated with an asynchronous web application of a web page associated with the web page codes using the asynchronous scripting language property values, and in an event that the one scripting file is a non-framework file, obtaining the at least one function based on a corresponding asynchronous scripting language property value and codes associated with the function as defined in the non-framework file; and triggering the at least one function that comprises at least one asynchronous scripting language call to obtain web page content generated. - View Dependent Claims (2, 3, 4)
-
-
5. A system of retrieving asynchronous JavaScript and XML web page content, the system comprising:
-
a processor; a web page code acquisition unit that obtains information of web page codes; a script retrieving unit that retrieves scripting language information from the information of the web page codes; a script analyzing unit that; determines a type of a scripting file indicated by the scripting language information based on a filename of one scripting file, in an event that the scripting file is a framework file; obtains an asynchronous scripting language property value, and determines a function that includes a call associated with an asynchronous web application of a web page associated with the web page codes using the asynchronous scripting language property value, and in an event that the scripting file is a non-framework file, obtains the function based on a corresponding asynchronous scripting language property value and codes associated with the function as defined in the non-framework file; and a web page content acquisition unit that triggers the function that comprises at least one asynchronous scripting language call to obtain web page content. - View Dependent Claims (6, 7, 8, 9, 10, 11)
-
-
12. One or more non-transitory storage media comprising computer-executable instructions that, when executed by a computer, configure the computer to perform acts comprising:
-
retrieving scripting information from a web page, the scripting information indicating one or more scripting files; determining a type of one scripting file of the one or more scripting files based on a filename of the one scripting file, in an event that the one scripting file is a framework file; obtaining one or more asynchronous scripting language property values, and determining a function that includes a call associated with an asynchronous web application of the web page using the one or more asynchronous scripting language property values, and in an event that the one scripting file is a non-framework file, obtaining the function based on a corresponding asynchronous scripting language property value and codes associated with the function as defined in the non-framework file; and calling the function to generate content associated with the web page. - View Dependent Claims (13, 14, 15, 16)
-
Specification