Garrick Cheung

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

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 [...]

Aaron Newton brings back $E for MooTools 1.2.1

In Aaron Newton’s announcement of his beta plugins, he’s brought the $E function back, and then some. $E, a function for returning the first element from a selector in MooTools 1.*, was removed from the beta and final release of MooTools 1.2.1.

MooTools.Floor Does Form Validation Right!

We’ve all dealt with form validation one way or another and I didn’t find one to my liking. I was mulling over the idea of writing my own for a while and then I read Ajaxian’s blog today about a really awesome MooTools form validation class from MooTools.Floor. MooTools.Floor actually announced their FormCheck v1.4 form [...]

Ready for display:table? I think not.

Rachel Andrew wrote an article about the CSS display property to include a few new tricks in IE8. When released, Internet Explorer 8 will support many new values for the CSS display property, including the table-related values: table, table-row, and table-cell—and it’s the last major browser to come on board with this support. This event [...]

Moo-Comet aka MooTools Request.Comet

Ever heard of Comet? I heard it long ago when it just started out in Ajaxian’s post. They described it best: Alex Russell has coined a term for a flavour of Ajax that’s been getting more attention of late. Comet describes applications where the server keeps pushing – or streaming – data to the client, [...]

MooTools Delete Key

David Walsh has kept us informed in his post about the delete key event. To detect the delete key, this does not work because ‘delete’ is a reserved word in javascript: 1 var isdel = Event.Keys.delete; So here is the proper way: 1 var isdel = Event.Keys[’delete’]; He put it best: As flexible as Moo’s [...]

Two columns with unordered lists

David Walsh recently posted “Get WordPress Post Categories“, where he talked about using the wordpress get_categories() function to create a two column list of his categories in his theme. I offer a slightly different approach using an unordered list.

MooTools 1.2.1 hits the web!

If you haven’t found out already, MooTools 1.2.1 is now available. The MooTools dev team has stated that it won’t break any of your MooTools 1.2 code! It’s also working with Safari 2 again. Congratulations to the team for a job well done! You can check out the changelog for a list of changes. Go [...]

Bezier Class in MooTools

Iván Paz (correct me if I’m wrong, not sure that is the correct surname) has put together a really awesome MooTools class that extends Fx.Morph with bezier calculations used in translations. You can check out his site here: Ivanicus’ Code Box He’s got an example set up too! But beware, it’s currently a work-in-progress, as [...]

Form property set/get error with MooTools in Internet Explorer

When I was working on TV.com‘s redesign, I found an error when setting or getting a form element’s properties in IE. The other browsers was able to set or get the property just fine. So I’m going to share my solution with you today. I’ll go over the methods MooTools has first so you know [...]

keep looking »
taking viagra woman Cheap Viagra
cheap gerneric viagra?