SERVER EVALUATION OF CLIENT-SIDE SCRIPT
First Claim
1. A method performed by a server computing device for evaluating a client-side script, comprising:
- providing an object that emulates a browser object, the provided object exposing a function for performing steps comprising;
receiving a first link; and
storing the received first link in a list of links to be processed;
receiving a second link to be processed;
loading a second document identified by the received second link; and
assigning the provided object to a global variable so that a script associated with the loaded second document invokes the function exposed by the provided object instead of a function with a similar name that is exposed by the emulated browser object wherein the function with the similar name exposed by the emulated browser object loads a first document referenced by the received first link upon receiving the first link.
12 Assignments
0 Petitions
Accused Products
Abstract
A facility is described for server-side evaluation of client-side script, such as to crawl and index dynamically generated links. In various embodiments, the facility provides an object that emulates a browser object. The provided object exposes a function for performing steps comprising receiving a first link and storing the received first link in a list of links to be processed. The facility receives a second link to be processed, loads a second document identified by the received second link, and assigns the provided object to a global variable so that a script associated with the loaded second document invokes the function exposed by the provided object instead of a function with a similar name that is exposed by the emulated browser object. The function with the similar name exposed by the emulated browser object handles the received first link without storing it in the list of links to be processed.
48 Citations
20 Claims
-
1. A method performed by a server computing device for evaluating a client-side script, comprising:
-
providing an object that emulates a browser object, the provided object exposing a function for performing steps comprising; receiving a first link; and storing the received first link in a list of links to be processed; receiving a second link to be processed; loading a second document identified by the received second link; and assigning the provided object to a global variable so that a script associated with the loaded second document invokes the function exposed by the provided object instead of a function with a similar name that is exposed by the emulated browser object wherein the function with the similar name exposed by the emulated browser object loads a first document referenced by the received first link upon receiving the first link. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system for evaluating client-side script at a server computing device, comprising:
-
a list of links to process, each link identifying a document; a script engine component operating at the server computing device that, when a link in the list of links is processed, executes a script indicated by a script element of a document identified by a processed link causing a global variable to point to an emulating object that emulates a browser object, the emulating object providing a function with a name that is similar to a corresponding function that is provided by the emulated browser object, wherein the function provided by the emulating object stores a received link in the list of links to process even though the corresponding function that is provided by the emulated browser object handles the received link without storing it in the list of links to process. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
-
19. A computer-readable medium having computer-executable instructions that, when executed, cause a server computing system to perform a method of evaluating a client-side script, the method comprising:
-
providing an emulating object that emulates a browser object; receiving from a list of links a link that is to be processed; loading a document identified by the received link; and assigning the emulating object to an identifier so that a script identified by the loaded document invokes a function exposed by the emulating object instead of a corresponding function with a similar name that is exposed by the emulated browser object wherein the function with the similar name exposed by the emulated browser object handles a link it receives as a parameter but the function exposed by the emulating object stores in the list of links to be processed the link it receives as a parameter without handling the link. - View Dependent Claims (20)
-
Specification