Please consider donating: a local project in memory of my daughter

Archive for the "javascript" Tag

Custom URL schemes in PhoneGap

With Marbles2 for iOS I wanted people to be able to click on a url, like http://marbles2.com/app/?seed=2A72367A and if the app is installed on the iOS device, for it to launch Marbles2 and initialise with the "seed" passed in. It required a change to the iPhone PhoneGap project, which has been since merged in to the [...]

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

Slicehost, Node.js & WebSockets

I've been looking for a small hosting provider that I could run node.js on to test out some WebSocket experiments, and this is my account so that you also can have a play.

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