Professional Documents
Culture Documents
02 Mootools
02 Mootools
Programming
Jaume Aragons Ferrero
Department of Software
and Computing Systems
Advanced Web Programming
MOOTOOLS
A compact JavaScript framework
Advanced Web Programming
Index
What is MooTools
Where to find
!ow to download
#reating a console"
%xercises"
Advanced Web Programming
What is MooTools
It is (b)ect*(riented
Wikipedia,
http,44mootools"net4download-
download page"
http,44mootools"net4docs-
doc'mentation page"
http,44www"mootorial"com4wiki- a
good t'torial
Advanced Web Programming
!ow to download
5o to www"mootools"net4download
#lasses
$orms
$ireb'g,
https,44addons"mo;illa"org4en*
6S4firefox4addon4<=>?
Advanced Web Programming
7efore start working"""
https,44addons"mo;illa"org4en*
6S4firefox4addon4@A
Advanced Web Programming
!ow to add to m& pages
C2+id*of*tag+3"method*or*propert&, when
we want to access to an element+s
method or propert&"
C2+m&I.+3"get%lement23-
C2+m&I.+3"get%lements23
C2+m&I.+3"get%lements7&Id23
C2+m&I.+3"get2+propert&+3
C2+m&I.+3"set2+attrib'te+- +val'e+3
m&Parent"adopt2new#hild- """3
m&%lement"in)ect2elementD- where3
http,44mootools"net4docs4core4#ore4#ore
Add a new text field to the form asking for the amo'nt of
prod'cts the 'ser wants to b'&"
Webs,
mootools"net
www"mootorial"com
)son"org
wikipedia"org
7ooks,
+get 'p+ event will move the list item to the next- if
exists"
+get down+ event will p't the clicked list item before
its previo's- if exists"