Garrick Cheung

Sharing what I know and learn about CSS, MooTools, Javascript, PHP and etc.

MooTools ContextMenu Class by David Walsh

Do you need to write some custom code or plug-in together for a context menu? I’m talking about the menu that comes up when you use your right mouse click. Well, now you don’t because David Walsh has release a pretty wicked and flexible ContextMenu class for MooTools.

Aaron Newton’s Event Delegation for MooTools

I just learned of Aaron Newton’s Event.Delegate.js and think it is amazing. Why is it amazing? Event delegation is a common practice where by you attach an event listener to a parent object to monitor its children rather than attach events to all the children. It’s far more efficient when you have numerous items on [...]

MooTools: No Sizzle

This is a little late.. I had forgotten to post this up on Dec. 7, 2008. Haven’t heard? Valerio Proietti of MooTools posted on their blog that Sizzle will not be implemented/adopted and reasons why MooTools, and other frameworks besides Dojo and jQuery, should not.

Qualified Selectors in MooTools

My friend Mike Horn asked me to come up with a solution for a pseudo selector in MooTools that John Resig wrote about for jQuery. To sum it up, the pseudo selector basically grabs the element that “has” or contains the passed-in element. After taking a look at that I came up with something.

Implement Other Selector Engines (e.g. Sizzle or Peppy) into MooTools?

Not too long ago announcements of two new selector engines came on the scene, Peppy by James Donaghue and Sizzle by John Resig. At the time I had a fleeting thought of how cool it would be if MooTools was as fast or faster than Peppy and Sizzle. Yesterday, Ajaxian tells us that the Dojo [...]

Clientcide: New Form Validators and Documented Beta Code

Aaron Newton has released some new form validators (with help from contributor Chafik Barbar) and documentation for his beta code. Everyone has to deal with form validators one way or another. I’ve posted on one from MooTools.Floor, but this is a different way of doing things.

JxLib, a MooTools Javascript UI Library

From Paul Spencer and team comes a UI library built from MooTools. After taking a look at the examples, I have to say it is very impressive work.

Run Javascript Functions Without using ‘domready’ Event

I don’t really like using the ‘domready’ event. The idea of adding another event to the window object just bugs me. So here’s the alternative. In short, an array is created, functions you want to run are added to the array, and when the page reaches the bottom the functions in the array are run.

Get Around Form submit() Mapping

If you’ve had to use javascript to submit a form, you may have used the forms submit() method. You may also experienced difficulty, such as a “submit is not a function” error. It has to deal with mapping and I’ve got a very simple solution.

What I Learned About Multi-threading in JavaScript

There’s no such thing. Correct me if I’m wrong, but multi-threading in javascript does not exist. But we can simulate it, as is discussed by James Edwards. How does it work? It all hinges on the use of asynchronous timers. When we run repetitive code inside an asynchronous timer, we’re giving the browser’s script interpreter [...]

« go backkeep looking »
taking viagra woman Cheap Viagra
cheap gerneric viagra?