System and method for manipulating a document object model
First Claim
Patent Images
1. A system for manipulating a document object model, the system comprising:
- a memory for storing instructions;
a processor for executing the instructions stored in the memory, the executed instructions configuring the processor and memory to provide;
a viewer for creating, manipulating and displaying a document object model from a received markup file describing a user interface including an instance of at least one behavior element, the viewer including;
a collection of predefined document object model behavior elements, the collection of predefined behavior elements including the at least one behavior element of the received markup file, each behavior element comprising;
a namespace for identifying the behavior element;
an event attribute for associating the behavior element to an event monitored by the viewer; and
other attributes for describing features of the behavior element; and
a collection of scripts for performing actions associated with the collection of behavior elements, each script of the collection of scripts being associated with a behavior element of the collection of behavior elements through the event attribute of the behavior element and manipulating the document object model in a predefined manner according to the other attributes of the behavior element when the viewer detects the occurrence of the event associated with the behavior element.
17 Assignments
0 Petitions
Accused Products
Abstract
A system for manipulating a document object model is provided. The system comprises a collection of document object model behavior elements, and a collection of scripts for performing actions associated with the set of behavior elements. Each behavior element comprises a name following a predetermined naming convention, an event attribute for associating the behavior element to an event, and other attributes for describing features of the behavior element. Each script is associated with a behavior element.
-
Citations
15 Claims
-
1. A system for manipulating a document object model, the system comprising:
-
a memory for storing instructions; a processor for executing the instructions stored in the memory, the executed instructions configuring the processor and memory to provide; a viewer for creating, manipulating and displaying a document object model from a received markup file describing a user interface including an instance of at least one behavior element, the viewer including; a collection of predefined document object model behavior elements, the collection of predefined behavior elements including the at least one behavior element of the received markup file, each behavior element comprising; a namespace for identifying the behavior element; an event attribute for associating the behavior element to an event monitored by the viewer; and other attributes for describing features of the behavior element; and a collection of scripts for performing actions associated with the collection of behavior elements, each script of the collection of scripts being associated with a behavior element of the collection of behavior elements through the event attribute of the behavior element and manipulating the document object model in a predefined manner according to the other attributes of the behavior element when the viewer detects the occurrence of the event associated with the behavior element. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for manipulating a document object model, the system comprising:
-
a memory for storing instructions; a processor for executing the instructions stored in the memory, the executed instructions configuring the processor and memory to provide; a viewer for creating, manipulating and displaying a document object model from a received markup file describing a user interface including an instance of at least one behavior element, the viewer including; a collection of predefined document object model behavior elements, the collection of predefined behavior elements including the at least one behavior element of the received markup file, each behavior element comprising; a namespace for identifying the behavior element; an event attribute for associating the behavior element to an event monitored by the viewer; and other attributes for describing features of the behavior element; and a collection of scripts for performing actions associated with the collection of behavior elements, each script of the collection of scripts being associated with a behavior element of the collection of behavior elements through the event attribute of the behavior element and manipulating the document object model in a predefined manner according to the other attributes of the behavior element when the viewer detects the occurrence of the event associated with the behavior element, wherein the collection of behavior elements comprises one or more of; a dsvg;
createElement behavior element for creating a new element and inserting the newly created element in a desired location in the document object model, the dsvg;
createElement behavior element comprising;a namespace; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a new element identification attribute for specifying the value of an identification attribute of the newly created element; an element name attribute for specifying the name of the element to be created; an attributes attribute for containing all of the attributes for the newly created element; a namespace attribute for specifying the namespace of the newly created element; a target attribute for specifying the xpath pointing to the location at which the new element is to be inserted; an insert as attribute for specifying whether the new element is to be inserted as a child, parent or sibling of a target element; an offset attribute for specifying the number of nodes before or after the target element; a from attribute for specifying whether the offset attribute is relative to first child or last child of the target element; a preserve target children attribute for specifying whether to copy the children of the target element; a preserve target events attribute for specifying whether to copy the events of the target element; and a preserve target attributes attribute for specifying the attributes of the target element; a dsvg;
createEvent behavior element for creating an event and dispatching the event to a desired target in the document object model, the dsvg;
createEvent behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; an event name attribute for specifying the type of the event; a source attribute for specifying the xpath to the element that the target will believe created the event; a target attribute for specifying the xpath to the element to which the event is dispatched; an event phase attribute for specifying a phase of event flow that is currently being evaluated; a bubbles attribute for specifying whether or not the event can bubble; a cancelable attribute for specifying whether or not the event can have its default actions prevented; a time stamp attribute for specifying the time at which the event was created; a stop propagation attribute for preventing further propagation of an event during event flow; and a prevent default attribute for specifying whether or not the event is to be cancelled, so that any default action normally taken by an implementation as a result of the event will not occur; a dsvg;
loadXML behavior element for creating a new element and inserting the newly created element in a desired location in the document object model, the dsvg;
loadXML behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a source attribute for specifying an xpath to a document or element within a document in an external file; a target attribute for specifying an xpath pointing to where the document or fragment is to be placed; an insert as attribute for specifying whether the new fragment is to be inserted as a child, a parent or a sibling of the target element; an offset attribute for specifying the number of nodes before or after the target element at which to insert the new element; a from attribute for specifying whether the offset attribute is relative to the first child or last child of the target element; a preserve target children attribute for specifying whether to copy the children of the target element; a preserve target events attribute for specifying whether to copy the events of the target element; and a preserve target attributes attribute for specifying the attributes of the target element; a dsvg;
setAttribute behavior element for creating, modifying, replacing or removing an attribute for a target element in the document object model, the dsvg;
setAttribute behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a target attribute for specifying an xpath pointing to a location of the target element; a name attribute for specifying the name of the attribute to be set; a namespace attribute for specifying a namespace of the attribute to be set; a modify attribute for specifying whether the attribute is to be created, replaced, removed or modified, with new text added to the beginning or the end of existing text; a delimiter attribute for specifying text that is to separate a previous value from a new value; a value attribute for specifying a value that the attribute is to be given; and a save previous value attribute for specifying whether to save the previous value of the attribute; a dsvg;
setClass behavior element for modifying contents of a class attribute of a target element in the document object model, the dsvg;
setClass behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a target element for specifying an xpath pointing to a location of the target element; an element identification attribute for specifying the identification attribute of the target element; a css name attribute for specifying the name of a CSS rule to replace, be added to, or be removed from the class attribute of the target element; a modify attribute for specifying how the CSS rule should modify the class attribute of the target element; and a save previous value attribute for specifying whether to save the previous value of the class attribute of the target element; a dsvg;
setData behavior element for modifying data of a target element in the document object model, the dsvg;
setData behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a target attribute for specifying an xpath pointing to a location of the target element; an element identification attribute for specifying the identification attribute of the target element; a value attribute for specifying the string to replace or add to data of the target element; a modify attribute for specifying how previous data it to be modified by new data; an offset attribute for specifying the number of characters from the beginning or end of the data at which to insert new data; a from attribute for specifying whether the offset attribute is relative to the beginning or end of the data; a count attribute for specifying the number of consecutive characters after the offset attribute to be replaced by the new data or to have the new data appended after; a substring attribute for specifying text to search for in the data of the target element; an occurrence attribute for specifying which occurrence of the substring attribute should be removed, replaced or modified; and a save previous value attribute for specifying whether to save the previous data of the target element; a dsvg;
setStyle behavior element for modifying the contents of a style attribute of a target element and for replacing the contents of a class attribute in a target element in the document object model, the dsvg;
setStyle behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a target attribute for specifying an xpath pointing to a location of the target element; a name attribute for specifying the name of the style property to be added, removed or replaced; a value attribute for specifying the value of the style property to be added, removed or replaced; a modify attribute for specifying how to modify the style attribute of the target element; and a save previous value attribute for specifying whether to save the previous value of the style attribute of the target element; and a dsvg;
setTransform behavior element for modifying a transform attribute of a target element in the document object model, the dsvg;
setTransform behavior element comprising;a namespace following the predetermined naming convention; an event attribute for specifying the event that triggers the behavior element, the event attribute settable to a string; a collection of other attributes comprising; an identification attribute for referencing the behavior element; a target attribute for specifying an xpath pointing to the location of the target element; a matrix attribute for specifying a matrix transformation to be applied to the target element; an absolute attribute for specifying how to apply a new transformation with respect a current transformation of the target element; an hAlign attribute for specifying how to calculate and apply a translation to the target element; a vAlign attribute for specifying how to calculate and apply a translation to the target element; a reference identification attribute for specifying the identification attribute of the target element; and a save previous value attribute for specifying whether to save the previous value of the transform attribute of the target element.
-
-
12. A method of manipulating a document object model, the method comprising the steps of:
-
receiving at a viewer, and storing in a computer readable memory, a markup file describing a user interface including an instance of at least one behavior element including an event attribute for associating the behavior element to an event monitored by the viewer; parsing the markup file to the document object model; monitoring for the occurrence of the event specified in the event attribute of the behavior element in the parsed document object model; detecting an event which is equal to the event attribute setting in the designated element being monitored; and calling a predefined script associated with the predefined behavior element having the event attribute matching the received event, the script performing actions including manipulating the document object model in a predefined manner based on other attributes of the behavior element. - View Dependent Claims (13, 14, 15)
-
Specification