What is DOMAssistant?
The idea of DOMAssistant is to provide a simpler and more consistent way to script against the Document Object Model (DOM) in web browsers. The idea is that everything starts with the element(s) in question, selected through id
or CSS selectors, and then perform various methods on it, such as adding or removing classes, events etc.
Example code:
$("#container input[type=text]");
$("#navigation a").addEvent("click", myFunc);
$("#news-list").load("updated-news.php");
DOMAssistant is Modular
DOMAssistant is completely modular, in the sense that it is only dependent on one single core JavaScript file, DOMAssistant.js
. All other modules are optional, and you can choose to only use the ones you find necessary in your application. The reasoning behind this is to make the file size as small as possible, while at the same time addressing any potential bandwidth issues.
Multi-language documentation
The documentation is offered online in English, and there is also complete downloadable documentation available in English, French and Chinese.