Twfeed.js - twitter feed javascript badge widget you can use for free

Home

twfeed.js - twitter feed javascript badge / widget you can use for free

Mar12009

a badge / widget type thing for #twitter, what I wrote

Get it here, a simple js feed thing that I wrote for my blog and am spreading round a few other places. Look out non techie / web page owning readers, example code coming up, you might as well turn away now...

I know there are billions of these out there, but writing my own is partly a way of trying out the search api, and partly my way of saying "I'm here, I'm into twitter now!". This has some bits of twitter's original blogger widget, but has some extra functionality that I wanted.

Requires jquery, but after that is quite small. Grabs a feed of your choice from twitter, a search for something you're interested in, or mentions of your name or your , and updates on the page of your choice. To use, include the js on your page, like so

<script type="text/javascript"

src="http://www.clarkeology.com/js/twfeed.js">

</script>

<ul class="tw"></ul>


Then optionally, if you want to choose your own feed / search terms, instead of just choosing my default, add a link to your feed somewhere like

<link rel="tw" href="http://search.twitter.com/search.json?q=" />

or

<a rel="tw" href="http://search.twitter.com/search.json?q=">my feed</a>

Only rel="tw" and the href are the important bits there. And you're ready to go!

Still tweaking it and things, but any feedback appreciated. You can see it in action in the right hand sidebar of my blog ... twitter me, , and you'll appear there (without needing to refresh the page).

:: :: Comment / reply

Paul Clarke's blog - I live and work near Folkestone. Married to Clare and father to Harry, I am a web dev, and I like javascript, PHP, Folkestone Gerald, pubs, restaurants, history, genealogy, TV, music, popbitch, squirrels, pirates ☠, time travel, stained glass...

Also from the same week

Some more blog posts from the same week as .

Productive use of a half day so far Have hoovered... [Thursday 26 February 2009]

Not thought to look on ebay for a house before [Thursday 26 February 2009]

Would have had a better view from Google Earth The view from our seats at the #Cure #gig [Friday 27 February 2009]

3 Imaginary Chairs No, 3 real chairs. #Habitat radius again [Saturday 28 February 2009]

twfeed.js - twitter feed javascript badge / widget you can use for free a badge / widget type thing for #twitter, what I wrote [Sunday 1 March 2009]

holidaybot [Monday 2 March 2009]

Still no review of The Cure then Had a good time, but I have nothing to say about the gig :-( [Monday 2 March 2009]

Signed "Killing an Arab" promo Nice story, not actual provenance though is it... [Monday 2 March 2009]

Flickr videos now available in HD With added #squirrels - Thanks [Tuesday 3 March 2009]

You can watch complete episodes of Jonathan Creek on google video Is this legit? Seems I can download it for my #ipod too [Wednesday 4 March 2009]

Michael Jackson to play the O2 Possibly a huge Prince style residency [Wednesday 4 March 2009]

Anti Pirate water cannon How does it distinguish pirates from non-pirates? [Wednesday 4 March 2009]