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 computer-executable instructions for implementing a method in a computer system that uses a markup language with a behavior component that enhances an element'"'"'s behavior 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, wherein the method comprises;
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.
-
Citations
33 Claims
-
1. A computer program product comprising:
a computer storage media having stored computer-executable instructions for implementing a method in a computer system that uses a markup language with a behavior component that enhances an element'"'"'s behavior 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, wherein the method comprises; 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. 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 a page for processing and displaying one or more elements therein; upon an initial automatic parsing of the page, processing from within the page an import instruction that links implementation of an element behavior with an element from the one or more elements of the page, wherein the element behavior encapsulates specific functionality or behavior for the element upon display; and upon parsing of the import instruction, producing instances of the element behavior for the element in the page making the specific functionality immediately and declaratively available, which synchronously binds the element behavior to the element. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. In a computer system a computer program product that uses a markup language with a behavior component that enhances an element'"'"'s initial behavior, a computer program product for implementing 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 computer program product comprising one or more computer readable media having stored thereon computer executable instructions that, when executed by a processor, can cause the distributed messaging system to perform the following:
-
receive at a browser application a page for processing and displaying one or more elements therein; automatic initial process of the page that includes one or more element, by parsing the page and interpreting the page via the browser, the page further comprising an import instruction to instantiate an element behavior component, which encapsulates specific functionality or behavior on the page for an element of the one or more elements; upon the automatic initial process of the import instruction and before interpreting the element in the page, instantiate the element behavior component in order to synchronously bind the instantiated instance of the element behavior component to the element by making the specific functionality or behavior immediately and declaratively available; and upon processing of the element, modify and initial behavior of the element with the instance of the element behavior previously instantiated. - View Dependent Claims (19, 20, 21)
-
-
22. In a computer system that uses markup language with a behavior component that enhances an element'"'"'s behavior, a tangible computer-readable medium for a web page that synchronously binds 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 computer-readable medium comprising:
-
an element behavior component coded as a file or binary component separate from a page that comprises elements for display, the element behavior component encapsulating specific functionality or behavior for an element within the page; a namespace declaration used to ensure that the element behavior component has a unique qualifier; an import instruction component in the page for calling an instantiation of the element behavior component, which creates an instance thereof during an initial automatic parsing of the page for importing the element behavior into the namespace declared; and an element in the page that references the namespace such that upon parsing the element, the instance of the element behavior component synchronously binds with an instance of the element. - View Dependent Claims (23, 24, 25)
-
-
26. In a computer system that uses hypertext markup language with behavior components that enhance an element'"'"'s behavior, a method of providing a visual representation that the behavior component may provide to a page so that the structure of the behavior component display is transparent to primary document to which the behavior component is linked, but the content of the behavior component display may be displayed in the primary document, the method comprising:
-
displaying a primary document that includes an element and a view link, which provides a pointer to a behavior component of the element for enhancing the functionality or behavior of a component when the primary document is parsed at a web browser and an instance of the behavior component and the element subsequently rendered therein; using the pointer to retrieve the behavior component display; identifying that the behavior component display includes a declaration for setting the view link linking the file; and rendering the behavior component display within the primary document, without incorporating the elements of the encapsulated behavior component display into the primary document structure. - View Dependent Claims (27)
-
-
28. In a computer system that uses hypertext markup language (HTML) with behavior components, a method for increasing the speed at which a web page loads by using lightweight HTML components in an implementation of behaviors for elements, the method comprising:
-
receiving at an HTML renderer a document that includes a lightweight attribute for allowing content within the document to be ignored; identifying that the lightweight attribute is active, which instructs the HTML render that the document does not include static content; and based on the activation of the lightweight attribute, not parsing HTML content in the file. - View Dependent Claims (29, 30, 31)
-
-
32. In a computer system that uses hypertext markup language (HTML) with behavior components, a method of permitting a web page designer to add content between starting and ending element tags that is not parsed, but accessible using script by using a literal content component, the method comprising:
-
receiving at an HTML renderer a document that includes a plurality of elements; upon parsing of the document, identifying that at least one of the plurality of elements has been implemented with a literal content attribute with content defined between element tags thereof; not parsing the content within the element tags; providing script or other code separate from the parsing of the document by the renderer for accessing the content within the element tags; and using the script or other code to access and act upon the content within the element tags. - View Dependent Claims (33)
-
Specification