Posts Categorized: JavaScript Libraries

Unified Event Handling API in jQuery – .live() Vs .on()

Posted by & filed under jQuery.

unified Event Api- .on method

We have been reading about the unified event handling model that brings the event handling under two main methods, i.e. .on() and .off() methods. In the first post of the Unified Event Handling Series, we compared the .on() method with the .bind() method and saw how the .on() method replaces the .bind() method. In the Continue reading…

Unified Event Handling API in jQuery – .bind() Vs .on()

Posted by & filed under jQuery.

unified Event Api- .on method

In the article about the new features in jQuery 1.7, we read about the new .on() event that replaces the .bind(), .live() and .delegate() events. jQuery had a strong Event Handling mechanism with a set of methods for handling various events. The number of these event handlers kept growing with each new release and the Continue reading…

How to select multiple DOM elements with jQuery

Posted by & filed under jQuery.

jQuery Multiple Selectors

We had a series of articles explaining various ways of selecting the DOM elements with jQuery.  We read about basic and hierarchical selectors, DOM filters and a special case of form filters. We saw an example of multiple selections in the post about the basic and hierarchical selectors. It is a very common requirement to Continue reading…

Auto Getters and Setters in Ext JS 4

Posted by & filed under JavaScript Libraries.

Ext JS 4 Getter and Setter

Having read about the concept of Mutator and Accessor methods, today we will relate the concept to Ext JS 4. In the earlier versions of Ext JS, there was no in-built support for getter and setter methods. One had to write the getter and setter functions for common tasks like getting and setting a Window Continue reading…

DOM Insertion with jQuery – .append() and .appendTo()

Posted by & filed under jQuery.

jQuery .append() Method

jQuery makes it really easy to add new stuff to existing DOM elements. There are various methods provided in jQuery to perform different types of insertions. The .append() is one such jQuery method that inserts the specified content to the end of each element in the set of elements matched by the jQuery filter. The Continue reading…