WIDGET BEHAVIOR CUSTOMIZATION VIA CASCADED STYLE SHEETS
First Claim
1. A computer program product, comprising:
- a computer readable storage medium to store a computer readable program, wherein the computer readable program, when executed on a computer, causes the computer to perform operations for customizing behavior of a JavaScript widget on a web page via Cascading Style Sheet (CSS), the operations comprising;
creating a HyperText Markup Language (HTML) Document Object Model (DOM) element;
assigning a CSS class from the presentation definition language to the DOM element;
obtaining a computed style for the DOM element, wherein the computed style is computed based on the CSS class assigned to the DOM element;
extracting a styling property from the computed style;
parsing the styling property to determine an option to be applied to the widget; and
applying the option to the widget.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer program product includes a computer readable storage medium to store a computer readable program, wherein the computer readable program, when executed on a computer, causes the computer to perform operations for customizing behavior of a JavaScript widget on a web page via a presentation definition language. The operations include: creating a HyperText Markup Language (HTML) Document Object Model (DOM) element; assigning a CSS class from the presentation definition language to the DOM element; obtaining a computed style for the DOM element, wherein the computed style is computed based on the CSS class assigned to the DOM element; extracting a styling property from the computed style; parsing the styling property to determine an option to be applied to the widget; and applying the option to the widget.
24 Citations
20 Claims
-
1. A computer program product, comprising:
a computer readable storage medium to store a computer readable program, wherein the computer readable program, when executed on a computer, causes the computer to perform operations for customizing behavior of a JavaScript widget on a web page via Cascading Style Sheet (CSS), the operations comprising; creating a HyperText Markup Language (HTML) Document Object Model (DOM) element; assigning a CSS class from the presentation definition language to the DOM element; obtaining a computed style for the DOM element, wherein the computed style is computed based on the CSS class assigned to the DOM element; extracting a styling property from the computed style; parsing the styling property to determine an option to be applied to the widget; and applying the option to the widget. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A method for customizing behavior of a JavaScript widget on a web page, the method comprising:
-
creating a HyperText Markup Language (HTML) Document Object Model (DOM) element; assigning a Cascading Style Sheet (CSS) class to the DOM element; obtaining a computed style for the DOM element, wherein the computed style is computed based on the CSS class assigned to the DOM element; extracting a styling property from the computed style; parsing the styling property to determine an option to be applied to the widget; and applying the option to the widget. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system for customizing behavior of a JavaScript widget on a web page, the system comprising:
-
a computer readable storage medium comprising a code repository to store code for a web page, the code defining an implementation of a widget, and a processor configured to perform operations, the operations comprising; creating a HyperText Markup Language (HTML) Document Object Model (DOM) element; assigning a CSS class from the presentation definition language to the DOM element; obtaining a computed style for the DOM element, wherein the computed style is computed based on the CSS class assigned to the DOM element; extracting a styling property from the computed style; parsing the styling property to determine an option to be applied to the widget; and applying the option to the widget. - View Dependent Claims (18, 19, 20)
-
Specification