Client-side components
First Claim
1. A method for generating a page, comprising:
- receiving, at a client, a plurality of components of the page, the plurality of components comprising a root component and one or more child components, each component being associated with at least a part of the page and each component comprising at least one of a display definition portion and a logic portion;
constructing, at the client and based on the plurality of components, a document object model (DOM) tree that defines a hierarchy of display elements, wherein each display element defines either a static portion of the page or a dynamic portion of the page and resides at a particular hierarchical level within the DOM tree;
constructing, at the client and based on both the DOM tree and the plurality of components, a logic tree that defines a hierarchy of logic objects, wherein the constructing comprises;
adding, for each display element in the DOM tree that defines a dynamic portion of the page, a logic object to the logic tree, wherein the logic object is at a same hierarchical level within the logic tree as the particular hierarchical level at which the display element resides in the DOM tree, and, when executed, carries out a particular action within the page;
rendering, at the client, the static portions of the page; and
rendering, at the client, the dynamic portions of the page based on both the DOM tree and the logic tree.
1 Assignment
0 Petitions
Accused Products
Abstract
Generating web pages dynamically at a client is disclosed. In some embodiments, when a web application or other code determines that a page is to be displayed, a set of components required to generate the page dynamically at the client is determined. Any components not already available at the client is obtained from a server. In some embodiments each component includes a display portion and may include one or both of a set of binding declarations and a logic portion. The components are parsed at the client and used to generate the page dynamically at the client, e.g., by generating associated portions of the document object model (DOM), retrieving JavaScript™ or other functions/classes and linking them to the respective portions of the DOM to which they correspond, and using the browser to render the page so created.
-
Citations
30 Claims
-
1. A method for generating a page, comprising:
-
receiving, at a client, a plurality of components of the page, the plurality of components comprising a root component and one or more child components, each component being associated with at least a part of the page and each component comprising at least one of a display definition portion and a logic portion; constructing, at the client and based on the plurality of components, a document object model (DOM) tree that defines a hierarchy of display elements, wherein each display element defines either a static portion of the page or a dynamic portion of the page and resides at a particular hierarchical level within the DOM tree; constructing, at the client and based on both the DOM tree and the plurality of components, a logic tree that defines a hierarchy of logic objects, wherein the constructing comprises; adding, for each display element in the DOM tree that defines a dynamic portion of the page, a logic object to the logic tree, wherein the logic object is at a same hierarchical level within the logic tree as the particular hierarchical level at which the display element resides in the DOM tree, and, when executed, carries out a particular action within the page; rendering, at the client, the static portions of the page; and rendering, at the client, the dynamic portions of the page based on both the DOM tree and the logic tree. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A method for providing a page, comprising:
-
receiving from a client a request for a page; sending to the client a plurality of components of the page, the plurality of components comprising a root component and one or more child components, each component being associated with at least a part of the page and each component comprising at least one of a display definition portion and a logic portion; constructing, at the client and based on the plurality of components, a document object model (DOM) tree that defines a hierarchy of display elements, wherein each display element defines either a static portion of the page or a dynamic portion of the page and resides at a particular hierarchical level within the DOM tree; constructing, at the client and based on both the DOM tree and the plurality of components, a logic tree that defines a hierarchy of logic objects, wherein the constructing comprises; adding, for each display element in the DOM tree that defines a dynamic portion of the page, a logic object to the logic tree, wherein the logic object is at a same hierarchical level within the logic tree as the particular hierarchical level at which the display element resides in the DOM tree, and, when executed, carries out a particular action within the page wherein the static portions of the page are rendered at the client based on the DOM tree; and wherein the dynamic portions of the page are rendered at the client based on both the DOM tree and the logic tree.
-
-
21. A system for generating a page, comprising:
-
a processor at a client configured to; receive a plurality of components of the page, the plurality of components comprising a root component and one or more child components, each component being associated with at least a part of the page and each component comprising at least one of a display definition portion and a logic portion; construct, based on the plurality of components, a document object model (DOM) tree that defines a hierarchy of display elements, wherein each display element defines either a static portion of the page or a dynamic portion of the page and resides at a particular hierarchical level within the DOM tree; construct, based on both the DOM tree and the plurality of components, a logic tree that defines a hierarchy of logic objects, wherein the constructing comprises; adding, for each display element in the DOM tree that defines a dynamic portion of the page, a logic object to the logic tree, wherein the logic object registers as an event listener for DOM events associated with the display element and is at a same hierarchical level within the logic tree as the particular hierarchical level at which the display element resides in the DOM tree, and, when executed, carries out a particular action within the page; render the static portions of the page based on the DOM tree; and render the dynamic portions of the page based on both the DOM tree and the logic tree; and a memory coupled to the processor and configured to provide instructions to the processor. - View Dependent Claims (22, 23, 24)
-
-
25. A computer program product for generating a page, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
-
receiving, at a client, a plurality of components of the page, the plurality of components comprising a root component and one or more child components, each component being associated with at least a part of the page and each component comprising at least one of a display definition portion and a logic portion; constructing, at the client and based on the plurality of components, a document object model (DOM) tree that defines a hierarchy of display elements, wherein each display element defines either a static portion of the page or a dynamic portion of the page and resides at a particular hierarchical level within the DOM tree, and wherein one of the display elements in the DOM tree is a page-level display element that defines a dynamic portion of the page; constructing, at the client and based on both the DOM tree and the plurality of components, a logic tree that defines a hierarchy of logic objects, wherein the constructing comprises; adding, for the page-level display element in the DOM tree, a page-level logic object in the logic tree that registers as an event listener for all DOM events that occur within the page; and adding, for each additional display element in the DOM tree that defines a dynamic portion of the page, a logic object to the logic tree, wherein the logic object is at a same hierarchical level within the logic tree as the particular hierarchical level at which the display element resides in the DOM tree, and, when executed, carries out a particular action within the page; rendering, at the client, the static portions of the page based on the DOM tree; and rendering, at the client, the dynamic portions of the page based on both the DOM tree and the logic tree. - View Dependent Claims (26, 27, 28, 29)
-
-
30. A computer program product for providing a page, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
-
receiving from a client a request for the page; and sending to the client a plurality of components of the page, the plurality of components comprising a root component and one or more child components, each component being associated with at least a part of the page and each component comprising at least one of a display definition portion and a logic portion; constructing, at the client and based on the plurality of components, a document object model (DOM) tree that defines a hierarchy of display elements, wherein each display element defines either a static portion of the page or a dynamic portion of the page and resides at a particular hierarchical level within the DOM tree; constructing, at the client and based on both the DOM tree and the plurality of components, a logic tree that defines a hierarchy of logic objects, wherein the constructing comprises; adding, for each display element in the DOM tree that defines a dynamic portion of the page, a logic object to the logic tree, wherein the logic object registers as an event listener for DOM events associated with the display element and is at a same hierarchical level within the logic tree as the particular hierarchical level at which the display element resides in the DOM tree, and, when executed, carries out a particular action within the page; rendering, at the client and based on the DOM tree, the static portions of the page; and rendering, at the client and based on both the DOM tree and the logic tree, dynamic portions of the page.
-
Specification