Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain


CA114      CA170

CA668      CA669      Projects

Javascript Twitter application

This practical needs re-writing since Twitter API now requires server-side code (e.g. in PHP) to do authentication.

Write a page which has a Twitter widget in it.
  1. The widget has an entry field in which you can type in a twitter userid.
  2. When you click on a submit-type button, the page fetches the latest tweets from that userid and displays them in a section inside the widget.
  3. Twitter has an API to return a feed of a user's tweets.
  4. You will need both PHP (for server-side authentication) and Javascript (for JSON parsing).
  5. When the Javascript recovers the JSON feed of tweets, it parses it and displays the tweets in some nice way (be creative).

ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.

Wikipedia: Sometimes I link to Wikipedia. I have written something In defence of Wikipedia. It is often a useful starting point but you cannot trust it. Linking to it is like linking to a Google search. A starting point, not a destination. I automatically highlight in red all links to Wikipedia and Google search and other possibly-unreliable user-generated content.