Archive for the ‘Web’ Category
Mootools Basics
Mootools is a great JavaScript library and I feel really comfortable using it. There are lot other libraries, like JQuery, DoJo, ExtJS. They have their own features, but I feel strong with Mootools. ExtJs is really good, but very much heavyweight. On the other hand Mootools is really lightweight. Including all the core features, it is only around 64KB. Special effects may weight around 100KB more.
Most used function of Mootools is the $ function. Its a bit confusing with JQuery and that’s why conflicts with JQuery, if used on the same page. $ selects a dom element from the document by its id. The syntax is $(‘element_id’). There is another pretty good function that I like is $$ function. It selects elements by class name or tag etc. More on this functions are available at Mootools documentation.
Mootools Request feature is another great thing to have. This AJAX calling function is capable of sending AJAX request either in GET or POST method.
These are the basic functions one may need to develop a regular web application. There are also other common helper functions for Array, String, Number, Cookie etc. For detail idea about Mootools it is suggested to visit Mootools Documentation at: http://docs.mootools.net/
One thing to keep in mind. Whenever you are adding some JavaScript code on your documents HEAD, make sure it is inside a document onReady or onLoad function. Otherwise you’ll get stuck with JS errors. Most of the cases, the common mistake is like using the JS code to get an element at the HEAD, but the body is still loading… So the script couldn’t find the element and through error.
For Mootools, this onLoad wrapping syntax is like this:
window.addEvent('domready', function(){
//Your Code Here
});
Blueprint CSS
This is a great CSS framework I’ve found online. Its optionality, and ease of use amazed me. This is mainly a grid based framework. You just create your element (e.g. div, span) and attach a class that corresponds to the disired width of your element. Thats it.
This really worth a visit…
Playing with Flex
Heard the buzz about Flex. Got Flex 3 just few days ago and started the beginners tutorial from Adobe website. Well… its fun. A really nice and useful tool. My first Flex application is here: http://demos.creash.com.bd/playground/flex/Demo.html
The tutorial for this can be found here.











