thoughtfully studied

follow me on Twitter!

Liverpool .Net User Group

We are arranging the inaugural meeting of the Liverpool .Net User Group on Tuesday, 11th of March at 6pm. We're planning to have it here at the "glowplex".

If you're attending please sign up on the upcoming page or drop me an email.


No Comments

Dom Ready now with added Curry!

The cross browser DomReady event is a great feature in all the good JavaScript libs. Basically you use it where you'd normally use the window onLoad event, the only difference is that it doesn't wait for images and other large assets to load before firing. So when people are in a hurry or the page is just slow they don't get a lessened experience because your progressive enhancements haven't done their enhancing.

Quite often you don't want to use a library, like when you're trying to make a simple standalone util. So here's a simple standalone cross browser DomReady script, tested in a few versions of IE, FF and Safari (should be fine in Opera).

Here's how to use it in it's simplest form.

Here's how to use currying, the second argument is the scope that the method is fired in and the rest of the arguments are passed to the method.

So this would call the function fHandler, when that function uses this it will refer to MyNamespace and it's one argument is a string containing init


1 Comment
Thom Shannon's background in making chips gives him a unique insight into the web development industry. As the Technical Director of Glow New Media he works with clients across the UK to deliver high quality web marketing solutions using the latest techniques, accessibility practices, and web standards in both straight and crinkle cut.

Download a vCard (for Outlook)


Find Me (and my Social Graph)

RSS Feed

Archives 08.06 09.06 10.06 11.06 12.06 01.07 02.07 03.07 04.07 05.07 06.07 07.07 08.07 09.07 10.07 11.07 12.07 01.08 02.08 03.08

Thomas Shannon-Smith
Tom Shannon-Smith
Tom Shannon
Thom Shannon-Smith