Web element retargeting
AssigneeServiceNow, Inc.
InventorsJason Strimpel, Michael England, Chase Murphy, Darren Richards
Life of this patent
Estimating the term…
Abstract
A determination is made whether a source web element is to be retargeted. In response to the determination that the source web element is to be retargeted, one or more properties or attributes of the source web element is copied to a target web element and content of the source web element is routed to be rendered to the target web element. An event of the target web element is intercepted, and the intercepted event is provided to the source web element.
Claims20
A method, comprising:
- performing an analysis to determine whether a source web element is to be retargeted and determining that the source web element is to be retargeted;
- in response to the determination that the source web element is to be retargeted:
- copying one or more properties or attributes of the source web element to a target web element within a same Document Object Model;
- and
- routing content of the source web element to be rendered to the target web element;
- intercepting an event of the target web element that is different from the source web element, wherein the source web element is not a parent of the target web element;
- providing within the same Document Object Model the intercepted event of the target web element to the source web element that was a source of the content retargeted to the target web element to allow the intercepted event to be dispatched as if it originated from the source web element, wherein providing the intercepted event to the source web element includes redirecting the intercepted event to the source element after the content of the source web element having been already routed to the target web element;
- identifying that an attribute for retargeting the source web element is no longer enabled;
- determining that the source web element is no longer to be retargeted;
- disabling the target web element;
- and
- rendering a view of the source web element.
A system, comprising:
- one or more processors configured to:
- perform an analysis to determine whether a source web element is to be retargeted and determine that the source web element is to be retargeted;
- in response to the determination that the source web element is to be retargeted:
- copy one or more properties or attributes of the source web element to a target web element within a same Document Object Model;
- and
- route content of the source web element to be rendered to the target web element;
- intercept an event of the target web element that is different from the source web element, wherein the source web element is not a parent of the target web element;
- provide within the same Document Object Model the intercepted event of the target web element to the source web element that was a source of the content retargeted to the target web element to allow the intercepted event to be dispatched as if it originated from the source web element, wherein being configured to provide the intercepted event to the source web element includes being configured to redirect the intercepted event to the source element after the content of the source web element having been already routed to the target web element;
- identify that an attribute for retargeting the source web element is no longer enabled;
- determine that the source web element is no longer to be retargeted;
- disable the target web element;
- and
- render a view of the source web element;
- and
- a memory coupled to at least one of the one or more processors and configured to provide the at least one of the one or more processors with instructions.
A computer program product, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
- performing an analysis to determine whether a source web element is to be retargeted and determining that the source web element is to be retargeted;
- in response to the determination that the source web element is to be retargeted:
- copying one or more properties or attributes of the source web element to a target web element within a same Document Object Model;
- and
- routing content of the source web element to be rendered to the target web element;
- intercepting an event of the target web element that is different from the source web element, wherein the source web element is not a parent of the target web element;
- providing within the same Document Object Model the intercepted event of the target web element to the source web element that was a source of the content retargeted to the target web element to allow the intercepted event to be dispatched as if it originated from the source web element, wherein providing the intercepted event to the source web element includes redirecting the intercepted event to the source element after the content of the source web element having been already routed to the target web element;
- identifying that an attribute for retargeting the source web element is no longer enabled;
- determining that the source web element is no longer to be retargeted;
- disabling the target web element;
- and
- rendering a view of the source web element.
Dependencies are inferred from the claim text.