首页>
外国专利>
JAVASCRIPT-BASED, CLIENT-SIDE TEMPLATE DRIVER SYSTEM
JAVASCRIPT-BASED, CLIENT-SIDE TEMPLATE DRIVER SYSTEM
展开▼
机译:基于JAVASCRIPT的客户端侧模板驱动器系统
展开▼
页面导航
摘要
著录项
相似文献
摘要
A method in a client web browser (31) for preventing collisions and eliminating polling for matching Document Object Model, DOM, elements while operating a website. The browser receives from a server (35), information for creating a DOM from a plurality of DOM modules. A module includes a template (36) and a Driver (37). A unique class attribute for the Driver is created from an identifier tag (41), enabling the Driver to operate independent of other modules. A variable (43) set to reference a DOM element in the template is utilized to sandbox all actions by the Driver into the referenced DOM element in the template, thereby preventing collisions and eliminating polling for matching DOM elements. The Driver retrieves (55) data for die module, replaces (56) tags in the template with corresponding data, attaches (57) event listeners to defined DOM elements in the template, and manipulates (58) DOM elements as needed to enable user interaction with the DOM module.
展开▼