I'm trying to find a way of replicating twitter's way of showing contacts once a user has typed in the '@'.

If anyone has any ideas I'd be grateful, Google throws up a lot of twitter profiles and not much information for what I'm looking for.