Method for synchronously binding an external behavior to a web page element
First Claim
1. A computer program product comprising:
- a computer storage media having stored thereon, computer-executable instructions for implementing a method in a computer system, the method comprising;
receiving at a browser application, an HTML page for processing and displaying one or more HTML elements declared therein, the HTML page comprising an import tag, having an import instruction for importing element behavior into a declared namespace that is associated with the import tag, wherein the declared namespace is used to ensure that the element behavior has a unique qualifier;
upon an initial automatic parsing of the import tag within the HTML page, processing the import instruction to subsequently link an implementation of the element behavior with a custom HTML element of the one or more HTML elements defined within the body of the HTML page by using the declared namespace as part of a label for the custom element of the one or more elements, wherein the element behavior is a file or binary behavior component separate from the one or more elements within the HTML page and wherein the element behavior encapsulates specific functionality or behavior for the custom HTML element of the one or more HTML elements 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, and allowing the element behavior to be available declaratively to bind synchronously to the custom HTML element of the one or more HTML elements; and
prior to processing the custom HTML element of the one or more HTML elements, producing an instance of the element behavior making the specific functionality immediately and declaratively available;
upon further parsing of the HTML page, determining that the label for the custom HTML element of the one or more HTML elements comprises the declared namespace; and
based on the determining that the label for the custom HTML element of the one or more HTML elements comprises the declared namespace, attaching the instance of the element behavior to the custom HTML element of the one or more HTML elements, thereby synchronously binding the instance of the element behavior to the custom HTML element of the one or more elements such that;
(i) the instance of the element behavior is permanently bound to the custom HTML element of the one or more HTML elements, and (ii) the custom HTML element is processed as if it were a non-custom HTML 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.
-
Citations
20 Claims
-
1. A computer program product comprising:
-
a computer storage media having stored thereon, computer-executable instructions for implementing a method in a computer system, the method comprising; receiving at a browser application, an HTML page for processing and displaying one or more HTML elements declared therein, the HTML page comprising an import tag, having an import instruction for importing element behavior into a declared namespace that is associated with the import tag, wherein the declared namespace is used to ensure that the element behavior has a unique qualifier; upon an initial automatic parsing of the import tag within the HTML page, processing the import instruction to subsequently link an implementation of the element behavior with a custom HTML element of the one or more HTML elements defined within the body of the HTML page by using the declared namespace as part of a label for the custom element of the one or more elements, wherein the element behavior is a file or binary behavior component separate from the one or more elements within the HTML page and wherein the element behavior encapsulates specific functionality or behavior for the custom HTML element of the one or more HTML elements 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, and allowing the element behavior to be available declaratively to bind synchronously to the custom HTML element of the one or more HTML elements; and prior to processing the custom HTML element of the one or more HTML elements, producing an instance of the element behavior making the specific functionality immediately and declaratively available; upon further parsing of the HTML page, determining that the label for the custom HTML element of the one or more HTML elements comprises the declared namespace; and based on the determining that the label for the custom HTML element of the one or more HTML elements comprises the declared namespace, attaching the instance of the element behavior to the custom HTML element of the one or more HTML elements, thereby synchronously binding the instance of the element behavior to the custom HTML element of the one or more elements such that;
(i) the instance of the element behavior is permanently bound to the custom HTML element of the one or more HTML elements, and (ii) the custom HTML element is processed as if it were a non-custom HTML element. - View Dependent Claims (2)
-
-
3. In a computer system, a computer program product that uses a markup language with a behavior component that enhances behavior of a custom HTML element, the computer program product for implementing a method for synchronously binding the behavior component to the custom HTML element, the computer program product comprising one or more computer readable storage devices and having stored thereon computer executable instructions that, when executed by a processor, cause the computer program product to:
-
receive at a browser application, a page for processing and displaying one or more HTML elements therein; perform automatic initial processing of the page that includes the one or more HTML elements, by parsing the page and interpreting the page via the browser application, the page further comprising an import instruction to instantiate an element behavior component, which encapsulates specific functionality or behavior on the page for a custom HTML element of the one or more HTML elements; upon the automatic initial processing of the import instruction, and before interpreting the custom HTML element of the one or more HTML elements, instantiate the element behavior component in order to synchronously bind the instantiated instance of the element behavior component to the custom HTML element of the one or more HTML elements by making the specific functionality or behavior immediately and declaratively available, wherein when the instantiated instance of the element behavior component is synchronously bound to the custom HTML element of the one or more HTML elements, the instantiated instance of the element behavior component is permanently bound to the custom HTML element of the one or more HTML elements such that the custom HTML element is processed as if it were a non-custom HTML element; and upon processing of the custom HTML element of the one or more HTML elements, modify the initial behavior of the custom HTML element of the one or more HTML elements with the instance of the element behavior previously instantiated. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method for synchronously binding a behavior component to a custom HTML element, the method comprising:
-
receiving, at a browser application, a page for processing; displaying one or more HTML elements therein; automatically processing the page that includes the one or more HTML elements, by parsing the page and interpreting the page via the browser application, the page further comprising an import instruction to instantiate an element behavior component, which encapsulates specific functionality or behavior on the page for a custom HTML element of the one or more HTML elements; upon the automatic initial processing of the import instruction, and before interpreting the custom HTML element of the one or more HTML elements, instantiating the element behavior component to synchronously bind the instantiated instance of the element behavior component to the custom HTML element of the one or more HTML elements by making the specific functionality or behavior immediately and declaratively available, wherein when the instantiated instance of the element behavior component is synchronously bound to the custom HTML element of the one or more HTML elements, the instantiated instance of the element behavior component is permanently bound to the custom HTML element of the one or more HTML elements such that the custom HTML element is processed as if it were a non-custom HTML element; and upon processing of the custom HTML element of the one or more HTML elements, modifying the initial behavior of the custom HTML element of the one or more HTML elements with the instance of the element behavior previously instantiated. - View Dependent Claims (17, 18, 19, 20)
-
Specification