Dynamic web page behavior
First Claim
1. A computer-implemented method for rendering a web page image, the method comprising:
- receiving by one or more processors a Hypertext Markup Language (HTML) document having an element thereon, the HTML document including information associating the element with an external component that is encapsulated and external to the HTML document, the information comprising a reference to an extensible markup language (XML) namespace maintained in a cascading style sheet, the XML namespace declaring at least one behavior that can be imparted on elements in HTML documents, wherein a script for the at least one behavior is maintained in the external component separate from the HTML document, and wherein each of the at least one behavior includes an interface to the script maintained in the external component that can be called from the HTML document;
rendering by the one or more processors a page image corresponding to at least part of the HTML document, the page image including a representation of the element;
calling an interface of the external component to execute the script within the external component to impart one of the at least one behavior on the element rendered on the page image to enhance the element;
attaching the behavior to the element; and
wherein the behavior is attached to the element through the cascading style sheet, using a style rule defined in the HTML document.
1 Assignment
0 Petitions
Accused Products
Abstract
In some embodiments, code can be encapsulated in an external behavior component for affecting the behavior of an element inserted into an HTML document. A reference can be attached to the element in the document to associate the element with the external behavior component. A renderer can parse the element in the HTML document and access the external component to modify a behavior of a page image. For example, the properties or location of a displayed element associated with the external behavior component may be changed on an event, the external behavior component can control user data input, or the external behavior component can draw on the page image. Multiple documents can reuse external behavior components, and an element can be associated with multiple external behavior components. The associations between elements and external behavior components may be maintained in cascading style sheets, inline with the elements, and in various formats.
56 Citations
9 Claims
-
1. A computer-implemented method for rendering a web page image, the method comprising:
-
receiving by one or more processors a Hypertext Markup Language (HTML) document having an element thereon, the HTML document including information associating the element with an external component that is encapsulated and external to the HTML document, the information comprising a reference to an extensible markup language (XML) namespace maintained in a cascading style sheet, the XML namespace declaring at least one behavior that can be imparted on elements in HTML documents, wherein a script for the at least one behavior is maintained in the external component separate from the HTML document, and wherein each of the at least one behavior includes an interface to the script maintained in the external component that can be called from the HTML document; rendering by the one or more processors a page image corresponding to at least part of the HTML document, the page image including a representation of the element; calling an interface of the external component to execute the script within the external component to impart one of the at least one behavior on the element rendered on the page image to enhance the element; attaching the behavior to the element; and wherein the behavior is attached to the element through the cascading style sheet, using a style rule defined in the HTML document. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for rendering a document having an element, the system comprising:
-
at least one memory device storing processor-readable data, the processor-readable data including at least a Hypertext Markup Language (HTML) document having an element defined thereon, a first external behavior component external to the HTML document, the first external behavior component encapsulating script to carry out a first behavior, wherein a script for the first behavior is maintained in the first external behavior component separate from the HTML document, and wherein a cascading style sheet includes an extensible markup language (XML) namespace declaring the first behavior with reference to the first external behavior component; a processor coupled to the at least one memory device and configured to read data from the at least one memory device to implement an HTML renderer configured to read the HTML document from the at least one memory device and render an image of the HTML document, the image including a representation of the element, the HTML renderer further configured to impart the first behavior to the element by calling an interface to the script encapsulated in the first external behavior component, wherein the first behavior is attachable to the element; and wherein the first behavior is attached to the element through the cascading style sheet, using a style rule defined in the HTML document. - View Dependent Claims (8, 9)
-
Specification