This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Rabu, 03 Agustus 2011

Dojo/Dijit MenuItem binding using jQuery

While dojo is really awesome in ui detail, i feel better connected with jquery css selector method to assign an action for my menu.

so here it is how to do it.

in my dijit.menuItem tag add you own tag.

<div dojoType="dijit.MenuItem"><satirimenu url="main/logout"/>Logout</div>

in you jquery ready function then use your own tag

//use own tag
$("satirimenu").click(function(){
alert($(this).attr("url"));
});

Then you can imagine whatever you wanto to achieve using this method.
happy Coding!

Senin, 01 Agustus 2011

Javascript Trim

String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
return this.replace(/\s+$/,"");
}

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More