• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
 
JavaScript Frameworks: Mootools
Ashwag al-harganKSUAshwag_al-hargan@hotmail.com
A
BSTRACT
In the past, JavaScript was often a tedious business, with browsers each offering their own mercurial blend of standard and nonstandard functionality. Modern JavaScript has taken off with the advent of JavaScript frameworks: libraries that enhance the JavaScript language itself and help you avoid all the pesky browser bugs. In this paper we look at one of these libraries “MooTools”. Why should we use it, how to download it, how to use it, and where we can have more information about using this library? 
K
EYWORDS
Mootools, Ajax, JavaScript Frameworks.
1. I
NTRODUCTION
The users who visit your site will have expectations that it will be similar to other sites, and if yours doesn’t,even if it looks great and has awesome content, it’ll look old. This might not drive people from using your site,but it will certainly result in less usage of the features you develop. To meet these expectations, you’ll find thatyou can’t do it with the skill sets traditionally required to build a web site. Back-end developers of Java,Perl, PHP, Python, Ruby, and so forth often find writing JavaScript to be tedious and fraught with frustrationwhen dealing with the browser quirks, while the people who spend most of their time working on the clientside creating the design, HTML, CSS, and images often don’t have a lot of serious programming experience.Presently, the most used programming language to build a web site is from open source. JavaScript is one ofthe open source languages. It is a scripting language with which a programmer can activate effectively andadd strong changing behaviour to the applications and web pages.Recently, JavaScript has become more advanced and can meet user expectations. Now, writing JavaScript isone of the most interesting sources and is widely accepted by users interested in designing web sites and theuse of bites provided to the browser. All visitors and your web builder will get help when using a goodJavaScript framework. JavaScript is a very strong language which contains the most precise expressions.When you are perfect at using it and able to make full use of a framework such as Moo Tool, this can beeasily noticed by your web users. You will feel that you’re starting as experienced and will enjoy it. This is thepurpose of spending time with Moo Tools.
 
 
2. J
AVA
S
CRIPT
F
RAMEWORKS
As the user would like to develop his applications, this will result in Ajax, drag and drop, animation and otherUI concepts into the web browsing experience. Years ago, it was very hard to achieve theses things inJavaScript and it was tiresome job. This is why it was less used in the past. Everything changed JavaScriptframework. JavaScript framework role is abstracting the code that you write from the engine that executed it.By this way, developer can cope with the thwarting segments of the job with JavaScript and you have overallcontrol avoiding JavaScript history. It is known that all browsers act in the same manner and so how theydeal with HTML and CSS.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copiesare not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copyotherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission.The First Mini-Conference in Web Technologies and Trends (WTT)
 © 
2009 Information Technology Department, CCIS, King Saud University, Riyadh, Saudi Arabia
By this way, developer can cope with the thwarting segments of the job with JavaScript and you have overallcontrol avoiding JavaScript history. It is known that all browsers act in the same manner and so how theydeal with HTML and CSS.There are many JavaScript frameworks such as Prototype, script.aculo.us, jQuery Mootools and others helpdevelopers to design interactive sites with less time. It showed developers that writing a framework, thatmade JavaScript itself better and easier and even kind of fun, was possible.
2.1 Why you should use a javascript framework [3]
Abstract your code from routine environment (browser)
Create foundation base on which you can build and grow.
Create a common environment for groups to contribute (with their own expression, Plug-ins and bugfixes
Encourage the use of similar patterns across disperate web sites on that users can refuse theknowledge they learn. 
3. M
OO
T
OOLS
MooTools is a collection of files written with JavaScript and it extends the functionality of the languagedesigned for the intermediate to advanced JavaScript developers .The author of MooTools JavaScriptframework is Valerio Proietti, who gets the idea from a prototype.js in addition to other series. It started whenValerio issued and add-on to Prototype.js. "Moo.fx"
1
.It was a lightweight only (3KB), easy to use and smallvolume. The author started his own framework Mootool (My Object Oriented Tools) That is becausePrototype.js with numerous short cuts to the Prototype of array. String, Function and more, did not extent theelement prototype and he was fed up because of frequently typing prototype's component generic.
 
Essentially, MooTools is a JavaScript framework that gives three essential things, previously mentioned aboutprototype.js. That gives short cuts and establishing classless to make work easy. It spreads local objects toprovide them with functionality. The significance is that library itself works as description to write JavaScript,definitely, how to use MooTools when writing in JavaScript.All most all JavaScript frameworks do such work with different value of results. MooTools is unique becauseit's perfect coding.
3.1 Characteristics of mootools [3]
Do not make duplication for code.
Add suitable functionality to principle to JavaScript's own design concepts.
Standards wok will but not yet used replaced by the implemented standard.
Native objective are to be extended such as (string, function, array and so on.
Number as JavaScript was built to perform.
Write understandable clean well named code to make easy for the reader
Do not demand too much of the browser (memory, Cup cycles and so on.)
Take as much as you can from out the browser.
When ever possible, make it still feel line you are writhing JavaScript.
Try to make it easy a fun job.
Make it Modular.It is built in a modular way. You do have to use it all to make a page works. When you need only Ajax deliversless JavaScript because and less bytes. When you do a good work that makes JavaScript better, keep onfollowing the basic principles. It does not appear as CSS or C++. It is a powerful tool it takes small footprintthan prototype and script aculo .us together.
3.2 Downloading mootools
Downloading MooTools is easy, but you have some options to consider and some choices to make. Go tohttp://www.MooTools.net/download (see figure 1)
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...