I’ve just added three new scripts to the JavaScript Routines library – detachDomEvent.js (remove element listener from an object), loadScript.js (load an external JavaScript (.js) file on demand) and loadStylesheet.js (load and external CSS (.css) file on demand).
These scripts are included in the latest version of Acid.JS – The AJAX Tools and Widgets Library as well.
JavaScript Routines is a collection of useful scripts that can facilitate and accelerate the JavaScript development. The download file includes the following scripts *:
* the latest additions are in red- addClassName.js
- attachDomEvent.js
- BackgroundImageCache.js
- compatMode.js
- detachDomEvent.js
- document.getElementById.js
- getElementsByClassName.js
- getElementStyle.js
- loadScript.js
- loadStylesheet.js
- pageLoad.js
- pageUnload.js
- relExternal.js
- removeClassName.js
- splitStringToArray.js
- toggleElement.js