Professional JavaScript Frameworks: Prototype,YUI, ExtJS, by Leslie M. Orchard, Ara Pehlivanian, Scott Koon, Harley Jones

Posted by

By Leslie M. Orchard, Ara Pehlivanian, Scott Koon, Harley Jones

Because the industry-standard, must-know scripting language, JavaScript is supported by means of all significant browsers and is more and more the basis of recent internet improvement applied sciences resembling Ajax and JSON. This booklet deals a variety of a few of the main energetic and such a lot used JavaScript frameworks on hand, replete with sensible examples and reasons of what each one framework does most sensible. You’ll examine universal internet improvement initiatives and become aware of how each one framework techniques that set of initiatives, in addition to the way to use the positive factors of every framework and stay away from strength pitfalls.

Note: CD-ROM/DVD and different supplementary fabrics should not integrated as a part of publication dossier.

Show description

Read or Download Professional JavaScript Frameworks: Prototype,YUI, ExtJS, Dojo and MooTools (Wrox Programmer to Programmer) PDF

Best programming: programming languages books

Professional JavaScript Frameworks: Prototype,YUI, ExtJS, Dojo and MooTools (Wrox Programmer to Programmer)

Because the industry-standard, must-know scripting language, JavaScript is supported via all significant browsers and is more and more the root of recent net improvement applied sciences reminiscent of Ajax and JSON. This e-book deals a variety of a few of the main energetic and so much used JavaScript frameworks to be had, replete with functional examples and causes of what every one framework does most sensible.

Extra info for Professional JavaScript Frameworks: Prototype,YUI, ExtJS, Dojo and MooTools (Wrox Programmer to Programmer)

Sample text

Com> Chapter 1: Extending and Enhancing DOM Elements Figure 1-3 descendants/descendantOf/firstDescendant/ immediateDescendants All of these methods allow you to work with the children of a given element. The methods descendants and immediateDescendants return arrays of child elements. ❑ descendants — This method returns an array containing the children of the element. If the element has no children, an empty array is returned. ❑ descendantOf — This method returns a Boolean telling you whether or not the given element is a descendant of the given ancestor.

Observer class checks all of the elements on the specified form and calls the function specified by the callback parameter. You can use this class when you want to find out if a group of elements on a form have changed since the last time the callback function was executed. Observer class and passing in the form element or ID, the interval in seconds you want the form to be checked, and the callback function. Observer(element, interval, callback); Here you set up a form containing a single text input in which you want to be notified when the user has typed something different into the text box.

Unload event fires, and removes all the event handlers before the DOM objects are cleaned up. methods if it is not already extended. observe have already been extended by Prototype. You should only have to call this inside of event handlers that were wired up using the element attributes or by using the native DOM methods attachEvent or addEventListener. stop(event) Suppose you want to prevent the event from bubbling up to an elements parent. Mozilla provides a stopPropogation method on the event object and Internet Explorer has a cancelBubble method.

Download PDF sample

Rated 4.07 of 5 – based on 9 votes