摘要 |
A method in a client web browser (31) for loading separate Document Object Model, DOM, modules utilizing self-referencing of running script elements. Each module is separated into a module template (36) and a module Driver (37). The module template includes tags (39) to be replaced with data, and the module Driver includes an identifier, ID), tag (41), a driver variable, a display variable (42), and functional code (44) controlling the operation of the Driver. The functional code causes the Driver to: ensure (72, 73) the ID tag is set as a unique identifier for the module, thereby creating a unique ID attribute for the Driver; set (74) the driver variable to reference the module Driver; and set (75) the display variable to reference in the module template, a DOM element that can be found relative to the module Driver. The referenced DOM element may be the DOM element in the template immediately prior to the module Driver. |