Patent ID: 7908550

Claim:
A computer readable storage medium, comprising: stored instructions for defining a set of classes for implementing a browser-independent control on a Web page, the set of classes comprising: an image button class; and a prompt class, wherein the image button and prompt classes are implemented in a script which is interpreted by a browser, and which uses a document object model to allow image button and prompt class instances to access their corresponding image buttons and prompts in the Web page; wherein the browser-independent control is a tree control, the set of classes further comprising: a tree class; and a tree node class, wherein a tree class instance contains at least one tree node class instance, wherein each tree node class instance contains at least one of the set of image button instances and prompt instances, and wherein a tree instance is dynamically altered upon an event, without further accessing a server; and instantiating the set of classes into a tree object, wherein instantiating a tree node class instance generates a tree node object, the tree node object coupled to a listener object which informs registered listeners of events, the tree object corresponding to the tree node object responsive to the listener object for: receiving a mousedown event from the tree node object; rethrowing the mousedown event to inform other tree node objects that have previously registered to receive the event; throwing a node click event to check for previously un-entered edits corresponding to other tree nodes; and selectively canceling the node click event when the tree object determines un-entered edits remain.