Monthly Archives: November 2009

writeArrayNicely()

Well I just wrote this function and then realised it’s basically redundant. When you write out the contents of an array in PHP using var_dump() it writes it all out on one line. Wouldn’t it be great if it wrote … Continue reading

Posted in Uncategorized | Tagged , , , | 6 Comments

JAWSM

I have just set up JAWSM (Jakes Awesome Web Site Modules (pronounced like a combination of “jaws” and “awesome”)). Over the next few months I’ll be posting some of the modules I’ve made there. This includes jaValidator and jaLogin both … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Character Encodings

If you want your content to display accurately and consistently across browsers and especially if you want even a hope of supporting other languages then you need to understand character encodings and which one(s) to use. Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Optional Arguments

What happens when you want to specify a value for $c but leave $a and $b as their default values? You don’t. Continue reading

Posted in Uncategorized | Tagged , , | 11 Comments

Internet Explorer

I just wrote a JavaScript function which worked perfectly first time! I was more than a little chuffed until I tried it out in Internet Explorer in which it did nothing. The reason being that, in IE, there is no … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 5 Comments

Beautiful HTML

This page has some nice pointers on how to write “beautiful” html. Includes a look at some of the new features in HTML 5. While we’re at it, here’s a link to a table of JavaScript events compatibility.

Posted in Uncategorized | Tagged , , | 1 Comment