By Mark Joseph Obcena (auth.)

Pro JavaScript with MooTools is in contrast to the other JavaScript booklet out there this present day. whereas comparable books specialise in both JavaScript as a language of the browser or tips to use JavaScript frameworks, Pro JavaScript with MooTools fills the distance among those subject matters and strikes beyond—exploring the complicated beneficial properties of JavaScript and the way the MooTools framework makes use of those gains to additional increase the language itself.

The e-book itself takes a different three-pronged technique. It first walks you thru the complicated good points of JavaScript and the MooTools framework, together with local augmentation and sort production, a finished dialogue of JavaScript features, object-oriented programming with local JavaScript and MooTools periods, and the MooTools classification internals. you will then research all approximately Javascript within the DOM: the weather periods and its internals, the MooTools occasion approach, Selector engines and MooTools Slick, Ajax and the Request item, and animation and the Fx classes.

The ultimate part relatively units the publication except all others, because it discusses JavaScript outdoor the browsers. you are going to take an in-depth examine CommonJS and MooTools, utilizing MooTools outdoor the browser to construct ORM, growing basic CommonJS purposes through the MooTools Deck framework, and developing advanced server-side functions utilizing Raccoon.

Show description

Read Online or Download Pro JavaScript with MooTools: Learning Advanced JavaScript Programming PDF

Best programming: programming languages books

Essential Java Fast : How to write object oriented software for the Internet

Java is a brand new and interesting object-oriented programming language that is set to remodel the realm vast internet. Java permits clients to jot down purposes which are accessed throughout diversified systems and gives an efficient technique of construction small yet strong courses that permit a major variety of latest purposes - similar to animation, stay updating, two-way interactions and so on.

Designing SQL Server 2000 Databases. for .Net ™ Enterprise Servers

The Microsoft . internet initiative is the way forward for e-commerce - making it attainable for corporations to construct a safe, trustworthy e-commerce infrastructure. this is often the 1st publication to stipulate the services of SQL Server 2000, one of many key parts of . web. SQL Server 2000 introduces robust new information mining performance designed in particular to seize and method client profiles and to foretell destiny deciding to buy styles on e-commerce websites.

Additional info for Pro JavaScript with MooTools: Learning Advanced JavaScript Programming

Sample text

However, inside the sayFruit function the identifier fruit has a different value because another variable fruit was also declared inside that function. Since the variable object of the current execution context is in the front of the chain before the global object, the interpreter knows that we are referring to a local variable rather than the global one and correctly resolves the identifier. Since JavaScript is a lexically-scoped language, identifier resolution also respects the position of functions in the code.

Fruit correctly resolves to the fruit variable, showing us that the this keyword in the snippet is in fact the global object. name resolves properly to the name property of the fruit object. In essence, it’s the same for previous examples: since the functions in the previous examples were properties of the global object, the this keyword inside the function body referred to the global object. So it follows that functions that are properties of any object will have the object itself as the this value in their body.

In our global scope, we create a new function called createFn, which returns a new logging function like our previous example. Next, we create a new localized scope and define a variable myFn and assign the return value of createFn. The code is similar to the earlier example, but here we use the function value that’s returned from another function instead of directly assigning the function literal to the variable. Also, the variable myFn is on a different localized scope, which is not accessible to our resulting function value.

Download PDF sample

Rated 4.73 of 5 – based on 42 votes