Playing with Js
Now, i’m playing with javascript, building objects, functions, callbacks etc etc
I’ve never work that way with javascript before, it’s nice and very useful.
We can build objects like that:
var myObject = {
varObject1: “value”,
varArray1 :[1,2,3,4,5],
myFunction: function(){
myFunctionStuff …
..
..
},
anotherFunction: function(aParam){
antherFunctionStuff…
..
.
}
}
So, i can use the fucntions like this:
myOject.myFunction();
It’s very simple, and useful, and very very nice, and you can mix with the AJAX framework that you like (jQuery, motools, Dojo, etc etc)