The Making Of FeedMalaya

promo-logo

FeedMalaya is a social blog aggregator that pull out the best content from Malaysian bloggers was launched on June 7th, 2009 developed by Bat InfoMalaya and myself.

[Click here to read more...]

FizzBuzz Challenge Revisited

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.

For this round as similar to before, I’m going to use Savvy.UI and jQuery. Code provided after the jump.

[Click here to read more...]

Live Form Validation for jQuery and Savvy.UI

Live Form Validation for jQuery and Savvy.UI is actually an extend of the Js.ext.validate module explained earlier in our Form Validation with jQuery and Savvy.UI tutorial. All core module under Savvy.UI use a customize JavaScript Inheritance method using Js.create which allow us to extends any core module to suite our requirement, which we would like to share with you in a moment.

[Click here to read more...]

Form Validation with jQuery and Savvy.UI

Form validation has been one of the essential of Savvy.UI and with version 1.1.4 released now we have further improvement Js.ext.validate (previously known as Js.Ext.Form) while fixing some of known bug in version 1.1.2 and 1.1.3.

[Click here to read more...]

Introducing GREP in Savvy.UI

Savvy.UI version 1.1.3 bring a numbers of new utility function to help you code, among added are Jrun.pickGrep, Jrun.inArrayGrep and Jrun.indexOfGrep. So one would ask, how are these functions can make my life easier? Let me gave you one example;

// this is how things got done in Savvy.UI before 1.1.3
var someFunction = function(method) {
    // assign value of method, if method=null then assign GET
    var method = Jrun.pick(method, "GET");

    // ensure method only POST or GET, default is GET
    method = (method.match(/^(get|post)$/i) ? method : "GET");
}

Using Grep you can actually do it this way;

var someFunction = function(method) {
   var method = Jrun.pickGrep(method, "GET", /^(get|post)$/i);
}