| ||||
|
JavaScript in TuneText-enabled content
Tips in no particular order.
1. Use external .js files. 2. Synchronization. The reason for this restriction is the abnormal synchronization of IE during loading scripts from within other scripts (here, - from running TuneText). First, it executes all textual part of the JavaScript available on page, and only after that loads external files. 3. How to remove customization profiles after uninstalling TuneText. C:/WINDOWS/Profiles/SomeUser/UserData C:/WINDOWS/Application Data/Microsoft/Internet Explorer/UserData Documents and Settings/username/Application Data/Microsoft/Internet Explorer/UserDataHowever, you should process the data only through the browser (e.g., running TuneText), not directly!
Usually the actual size of TuneText profiles is minimal.
For example, describing highlightings for the fragment consisting of thousands words takes just several bytes.
Please also note, if size of available memory on your hard drive approaches zero, all UserData is cleared by your OS automatically.
3. Backslash. Technically, the first occurrence of "</" followed by any letter is considered the end tag for the SCRIPT element. While browsers are forgiving in this, authors should avoid using strings such as "</P>" in their embedded scripts. JavaScript allows authors to use a backslash to avoid ending the SCRIPT element prematurely. Example: document.write("<\/P>")
4. Event handlers. onmousedown, onmouseup, ondblclick, onselectstart, oncontextmenu, onerror.
Users are able, however, to insert their code in onkeydown event handler, --
by modifying the function USERS_onkeydown() in TuneText_Design.js. Please also note. While in Edit mode, TuneText temporarly disables some of the handlers (within the scope of currently edited word only).
5. Do not replace HTML with JavaScript.
If you need to replace some text at a runtime,
use switching between several pre-made HTML Layers.
|