Method for synchronously binding an external behavior to a web page element
First Claim
1. In a computer system that uses a markup language with a behavior component that enhances an element'"'"'s behavior, a method of synchronously binding the behavior component to the element in order to prevent the behavior from being detached there from, promote predictability in the behavior, or reduce the need to add event-handling functions to check to see if the component has been downloaded and initialized, the method comprising:
- receiving at a browser application an HTML page for processing and displaying one or more elements declared therein, the page comprising an import tag, which is an import instruction for importing element behavior into a namespace declared and associated with the import tag, wherein the namespace is used to ensure that the element behavior has a unique qualifier;
upon an initial automatic parsing of the import tag within the page, processing the import instruction for subsequently linking implementation of the element behavior with an element defined within the body of the page by using the namespace as part of the label for the element, wherein the element behavior is a file or binary behavior component separate from the one or more elements within the page and encapsulates specific functionality or behavior for the element defined thereby; and
upon parsing of the import instruction, suspending one or more other threads, activities, or both until the contents of the element behavior have been downloaded, allowing the element behavior to be available declaratively to bind synchronously to the element; and
prior to processing the element defined by the downloaded element behavior, producing an instance of the element behavior making the specific functionality immediately and declaratively available;
upon further parsing of the page, identifying that label for the element comprises the namespace; and
based on the identification that the label for the element comprises the namespace, attaching the instance of the element behavior produced to the element, thereby synchronously binding the element behavior to the element.
2 Assignments
0 Petitions
Accused Products
Abstract
A new form of DHTML behaviors, called “Element Behaviors,” wherein a behavior component is bound to an HTML element, and not just attached to the element as with attached behaviors. A special processing instruction is used to import the Element Behavior into a Web page. Upon parsing the Web page, the Element Behavior is initialized as soon as it has been downloaded and parsed. This immediate initialization makes the Element Behavior declaratively available to bind synchronously to the element(s) it is modifying. A viewLink is a feature of Element Behaviors that permits encapsulation of a behavior component file (e.g., an HTC file) so that the structure of the HTC file is transparent to a Web page (“primary document”) to which the HTC file is linked, but the content of the HTC file may be displayed in the primary document. The viewLink provides a pointer to the content in the encapsulated HTC file, and renders that content in the primary document, without incorporating the elements of the encapsulated HTC file into the primary document structure.
11 Citations
4 Claims
-
1. In a computer system that uses a markup language with a behavior component that enhances an element'"'"'s behavior, a method of synchronously binding the behavior component to the element in order to prevent the behavior from being detached there from, promote predictability in the behavior, or reduce the need to add event-handling functions to check to see if the component has been downloaded and initialized, the method comprising:
-
receiving at a browser application an HTML page for processing and displaying one or more elements declared therein, the page comprising an import tag, which is an import instruction for importing element behavior into a namespace declared and associated with the import tag, wherein the namespace is used to ensure that the element behavior has a unique qualifier; upon an initial automatic parsing of the import tag within the page, processing the import instruction for subsequently linking implementation of the element behavior with an element defined within the body of the page by using the namespace as part of the label for the element, wherein the element behavior is a file or binary behavior component separate from the one or more elements within the page and encapsulates specific functionality or behavior for the element defined thereby; and upon parsing of the import instruction, suspending one or more other threads, activities, or both until the contents of the element behavior have been downloaded, allowing the element behavior to be available declaratively to bind synchronously to the element; and prior to processing the element defined by the downloaded element behavior, producing an instance of the element behavior making the specific functionality immediately and declaratively available; upon further parsing of the page, identifying that label for the element comprises the namespace; and based on the identification that the label for the element comprises the namespace, attaching the instance of the element behavior produced to the element, thereby synchronously binding the element behavior to the element. - View Dependent Claims (2, 3, 4)
-
Specification