This project is read-only.

Über Write module

Rating: No reviews yet
Downloads: 363
Change Set: 65453
Released: Aug 25, 2010
Updated: Aug 25, 2010 by Nanalich
Dev status: Stable Help Icon

Recommended Download

Source Code Über Write Minified(no comments)
source code, 1K, uploaded Aug 25, 2010 - 54 downloads

Other Available Downloads

Source Code Über Write Source(with comments)
source code, 2K, uploaded Aug 25, 2010 - 309 downloads

Release Notes

This module provides a JavaScript function called "urite" which could replace the "write" method of the "document" object in HTML pages.
With this function, JavaScript programmer could use the "write" feature to generate HTML code into the document while page loading without shuffling scriptlets' execution time.

There are bugs in most major browsers in which they will shuffle your scriptlets' execution/rendering time.
In order to reproduce the problem, you need to call document.write with parameter like '<script src="external.js"></script>someting else.'.
Open the HTML page in Internet Explorer and Opera, you will find that "external.js" will be executed after "something else." rendered.
In some complex cases, even WebKit based browsers (i.e. Google Chrome, Safari) can also produce this issue.

In the five major browsers the module's author tested, only Firefox can do the document.write job correctly without using this module.

Side effect: This module append an extra "script" element after each </script> in the content passed to the "urite" function in order to make the feature work.

Reviews for this release

No reviews yet for this release.