Posts Tagged ‘UI’

FastClick: native-like tapping for touch apps

The JavaScript APIs for handling touch events and gestures in JavaScript are simple and intuitive enough to grasp on first try, and the increasingly excellent support for web standards in Webkit browsers means we can create highly touch optimised web apps that look and feel like native apps. But that doesn’t mean there [...]

Tips for better fragment navigation

Fragment navigation is becoming more and more popular. Facebook practically runs their entire site on it, twitter search uses it, and Google recently defined a standard for making it crawl-able. JavaScript framework evangelists have rushed to produce plug-ins for their favourite tool-kit to make fragment navigation easier to implement. Here I’ll discuss [...]

Blocking events with blocker lists

It’s often useful to be able to detect scroll events using the onscroll event handler in JavaScript. For example, every time a user scrolls to nearly the bottom of the page, you load more content to create an ‘endless’ page. In my case, I have two DIVs set to overflow: auto, with chat [...]

Disappearing text cursor in Firefox

Do you ever find that sometimes when you try and type into a textbox, there is no cursor there, but it still accepts your input and the text appears as if there is a cursor? I came across this problem in Firefox 3 and searching online revealed only solutions to an earlier problem that [...]

Auto growing textareas

This feels like a topic that’s been explored to death already, but I really don’t like most implementations of this technique, so here’s how we do it.
First, in case anyone has just arrived from Mars, or even more unlikely, isn’t familiar with Facebook, the auto-growing textarea is a text box that gets bigger as you [...]