Dynamic Properties of Documents and the Use of These Properties
AssigneeMicrosoft Corporation
InventorMichael Winser
Life of this patent
Estimating the term…
Abstract
A browser for executing HTML code received from a computer network having a computer. The browser comprises code programmed to analyze HTML code and identify scalar properties and expressions, each expression defining the value of a dynamic property and being a function of the scalar property; code programmed to map a dependent/dependency relationship between the expression and the scalar property; and code programmed to notice a change in a value of the scalar property and to execute the expression in response to the change in value of the scalar property.
Claims19
A computer-readable medium having computer-executable instructions for performing a method of using expressions to establish a relationship between properties in code executable by a browser running on a computer, each property defining a characteristic of an object, wherein the computer-readable instructions are written in HTML code and define a document that forms the browser, the method comprising:
- declaring the value of a first property as a scalar value, wherein the first property is a width of a window of the browser;
- declaring the value of a second property as an expression, wherein the second property is a function of the first property, and wherein the expression represents an element in the window of the browser;
- automatically changing the value of the second property in response to a change in the value of the first property;
- and
- updating the document upon changing the value of the second property.
A computer-readable medium having stored thereon a data structure, the data structure including a plurality of nodes, comprising:
- at least one leaf node stored in memory, each leaf node containing a scalar property, wherein the scalar property is a width of a window of a browser;
- at least one expression node stored in memory, the at least one expression node containing an expression written in a markup language and defining a dynamic property, the expression being a function of the scalar property, the expression for programming formatting instructions, wherein the expression represents an element in the window of the browser;
- at least one pointer stored in memory, the at least one pointer mapping a dependent/dependency relationship between the scalar properties and the expressions, wherein upon notification of a change in the value for one of the scalar properties, the browser executes the expressions dependent on the scalar property having a changed value.
A computer for determining and outputting dynamic properties in HTML code received from a computer network, the computer comprising:
- a processor:
- a peripheral in data communication with the processor;
- memory in data communication with the processor, the memory storing a browser for execution by the processor, the browser including code programmed to:
- (a) analyze the HTML code to identify scalar properties and expressions, at least one of the expressions defining the value of a dynamic property and being a function of at least one scalar property, wherein the scalar property is a width of a window of the browser, and wherein the expression represents an element in the window of the browser;
- (b) map a dependent/dependency relationship between the at least one of the expressions and the scalar properties, wherein each expression depends from at least one scalar property;
- and
- (b) upon notification of a change in value of the scalar property, execute the at least one of the expressions that depends on the scalar property having a changed value.
A computer data signal embodied in a carrier wave readable by a computing system and encoding a computer program of instructions for executing a computer process using expressions to establish a relationship between properties of a document generated by HTML code that is executable by a browser, the properties including constant properties and dynamic properties, said computer process comprising:
- providing a value of one or more scalar properties, wherein the value of the scalar properties is not a function of another property, and wherein at least one of the scalar properties is a width of a window of the browser;
- creating one or more expressions declaring a value of a dynamic property, each dynamic property being a function of another property, the expression for programming formatting instructions, and wherein the expression represents an element in the window of the browser;
- and
- generating a dependency graph, the dependency graph having a plurality of nodes, including at least one expression node and one leaf node, each expression node corresponding to an expression and each leaf node corresponding to a value of a scalar property, the dependency graph mapping the relationship between the properties.
Dependencies are inferred from the claim text.