Check out my latest project: Full Frontal JavaScript Conference

Archive for the 'Code' Category

Universal launch images with PhoneGap

I've been playing with PhoneGap a lot recently, in part to prepare Marbles2, but also to bring JS Console to the iPhone as a native app. I've always wanted to create an app that worked on all devices, but getting the launch image correct for each device can be tricky.

Dynamic favicons

Google Calendar released a new favicon which prompted a few mentions from friends on Twitter. The first, probably more important was from Cennydd: New Google Calendar icon most un-Googley. I like it. Then Danny pitched in with: I see Google Calendar has a new icon. They could use the current date rather than [...]

Doing it right: skipping the iPhone url bar

With some mobile web sites when visited on the iPhone, you may want to skip past the url bar (something I'm not sure if it's possible, or even worth doing on other mobiles). There's a simple solution to doing this, but doing it right is the real trick.

Throttling function calls

If you've written any kind of validation on user input, like onkeypress then you'll know that sometimes you want to throttle the amount of times your function runs. A good example of this is Ajax based username validation - you don't want to hit the server on every key press, because most users will be [...]

Signs of a poorly written jQuery plugin

So far with every single workshop I've given, both for advanced JavaScript and jQuery for Designers, this question (or some variation thereof) has come up: How do you know if the plugin is good to use? It's always dependant on the problem they're trying to solve, but in lieu of a better jQuery plugin ranking [...]

The Missing Stat: noscript

I use Google Analytics for my web sites, you might use Mint or something else bespoke, but if you're using JavaScript to track those stats (as Google does), you're not capturing how many users you have that don't have JavaScript installed. I've written a plugin which I'll share with you and also explain how [...]

A better Twitter search

If you've not noticed already the search in Twitter has been downgraded to 7 days history. In fact, that changed some time ago. I've had the good fortune to be able to ask Twitter employees directly about the history via attending Devnest and I've been assured the history is being kept. That doesn't solve [...]