
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.
CodeIgniter, WordPress, jQuery, PHP & JavaScript Programmer

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.
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.
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.
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.
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);
}