DOMAssitant latest DOMAssistant2.5 release _ js object-oriented

Source: Internet
Author: User
The project on googlecode is worth learning. Its Class Library is a project on google code.
Just released version 2.5
I claim that I want to create another big and complete js library, which is intended to confront jQuery, prototype, YUI, and Ext. Haha
With this release of DOMAssistant, I feel that it can seriously compete
With the major JavaScript libraries on the market. It has a very easy
Syntax to select or manipulate elements, and with the core
Functionality anyone needs, without having to worry about web browser
Differences
After a brief look at the syntax, the YUI he can do should be basically done, but the Enhanced performance and extra checks for memory leaks ms is relatively strong, so you have time to take a look.
Secondly, it has some convenient syntaxes. the CSS and XPath syntaxes used by Selector are certainly better than the yui yahoo. util. get and then getElementsByClassName (In addition, Selector has been released for the new YUI). In addition, the most common get and load methods are used for Ajax requests, retrieving data and finding and updating the content of an element can be completed within a line of code. However, using YUI to do this may require 10 lines of code, anyway, it's a big deal to write the most commonly used load and get methods when packaging the YUI. The detailed methods are still needed. After all, not all requests are handled in a simple way like get and load.

Author site:Http://www.robertnyman.com/
Details:Http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/

New features included in version 2.5:
Full CSS1-3 selector support Full CSS1-3 selector support
New AJAX methods: load and get New load and get methods
Enhanced performance and extra checks for memory leaks Enhanced performance and extra memory leakage detection
XPath Support Xpath selector Support
DOMAssistant now creates its own scope to make use of private properties creates all attributes of the Self-running domain to protect itself
Also, in terms of code quality Robert has taken the extra step to ensure that the whole library is JSLint validated.
In addition, to ensure code quality, the entire code base has passed the JSLint verification,


The main purpose of DOMAssistant is to provide a solid foundation to build upon without all of the extras sometimes encoded in other libraries. As such, DOMAssistant focuses on:
DomAssistant aims to provide a base class library that does not depend on any third-party class libraries. DomAssistant focuses on the following features:

Element selection (through CSS selectors or enhanced methods). Element selection (via CSS selector or more powerful selection method)
CSS handling (adding and removing CSS classes). CSS attribute operations (adding or deleting CSS classes)
Event handling (adding and removing events). Event operations (add and delete events)
Content manipulation (add or remove elements). Page Content operations (add and delete page elements)

AJAX interaction (getting content from other sources, and adding it to the document ).
Ajax interaction (obtain content from external sources and add it to the specified location on the page)

DOM loaded (calling functions when the DOM is loaded, as opposed to the document with all dependencies ).
DOM loading is complete (a function is called back after the page DOM is loaded, instead of waiting for the page content to be loaded)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.