Method and system for injecting code to conditionally incorporate a user interface component in an HTML document
First Claim
1. A method in a computer system for injecting code into an HTML document to conditionally generate a user interface component when processing the HTML document, the method comprising:
- under control of browser code, installing interceptor code as a proxy server; and
sending a request for the HTML document to the interceptor code installed as the proxy server;
under control of the interceptor code installed as the proxy server, receiving the request for the HTML document;
forwarding the received request to a specified server;
upon receiving a response that includes the requested HTML document, injecting code into the received HTML document thereby creating a modified HTML document, wherein the stored code, when executed, conditionally generates additional code; and
forwarding to the browser code the received response that includes the modified HTML document; and
under control of the browser code, upon receiving the response that includes the modified HTML document, executing the code injected in the modified HTML document such that, when a certain condition is met, additional code is inserted into the modified HTML document; and
when processing the modified HTML document, using the inserted additional code to generate the user interface component.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for injecting code into an existing HTML document that enables the conditional generation and incorporation of an injectable component is provided. The injection mechanism provided enables a user to display an add-on user interface component within a web page using a technique that is transparent to the normal processing within a browser application. The injection mechanism installs interceptor code as a proxy server between a client browser and a server. The interceptor code monitors all HTTP messages sent from the client browser and injects code into each HTML document that is sent from a server to the client browser. The injected code when executed by the client browser conditionally inserts HTML code into the received HTML document. The inserted HTML code is then used by the client browser to generate a new component, for example a user interface component. The code injected by the interceptor code is dependent upon the type of the browser and whether certain tags are present in the received HTML document. In addition, the code may be written in a script language, such as Javascript or VBscript.
-
Citations
41 Claims
-
1. A method in a computer system for injecting code into an HTML document to conditionally generate a user interface component when processing the HTML document, the method comprising:
-
under control of browser code, installing interceptor code as a proxy server; and
sending a request for the HTML document to the interceptor code installed as the proxy server;
under control of the interceptor code installed as the proxy server, receiving the request for the HTML document;
forwarding the received request to a specified server;
upon receiving a response that includes the requested HTML document, injecting code into the received HTML document thereby creating a modified HTML document, wherein the stored code, when executed, conditionally generates additional code; and
forwarding to the browser code the received response that includes the modified HTML document; and
under control of the browser code, upon receiving the response that includes the modified HTML document, executing the code injected in the modified HTML document such that, when a certain condition is met, additional code is inserted into the modified HTML document; and
when processing the modified HTML document, using the inserted additional code to generate the user interface component. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32)
-
-
12. A method in a computer system for conditionally incorporating an injectable component as part of an HTML document, the method comprising:
-
installing interceptor code; and
under control of the installed interceptor code, receiving a response to a request for the HTML document; and
injecting code into the received response whereby, when the HTML document is processed, the injected code causes conditional generation of the injectable component and incorporation of the generated component as part of the HTML document.
-
-
25. A WEB page capturing system for injecting code to conditionally generate a component on a WEB page comprising:
-
an injectable user interface component;
an interceptor server that is installed as a proxy server, receives and forwards requests for WEB pages, receives and forwards responses to the requests for WEB pages, and that, upon receiving a response to a request for a WEB page, injects code into the WEB page; and
a browser that forwards requests for WEB pages to the interceptor server installed as the proxy server, receives responses that contain WEB pages from the proxy server, and displays the received WEB pages, such that, when a WEB page is received from the proxy server that contains the injected code, the injectable user interface component is generated and displayed transparent to the browser when a certain condition is met, without modifying the implementation of the browser.
-
-
33. A document injection system comprising:
-
a user interface component that is downloaded to a client machine;
an interceptor code module that is downloaded to the client machine and installed as a proxy server, thereby automatically intercepting HTTP-request and HTTP-response messages between the client machine and a specified server machine, the interceptor code module injecting code into each document that is received in an HTTP-response message; and
a browser code module that sends HTTP-request messages and receives HTTP-response messages through the proxy server and that processes documents received in HTTP-response messages, whereby, when the browser code module executes the injected code as part of processing a received document, additional code is conditionally inserted into the received document that, when executed, is used to automatically generate an instance of the downloaded user interface component. - View Dependent Claims (34, 35, 36, 37, 38, 39, 40, 41)
-
Specification