Plugin jQuery: TwitStream : jQuery, AJAX, and the Twitter Search API

TwitStream : jQuery, AJAX, and the Twitter Search API
http://www.jqueryrain.com/?http://www.iamnoahcooper.com/TwitStream/
http://www.iamnoahcooper.com/TwitStream/
03/08/2012

Nội dung

TwitStream : jQuery, AJAX, and the Twitter Search API

I was perusing the Web looking for some quick and dirty Javascript I could use with the Twitter Search API to display a list of recent tweets containing a particular keyword. I came across the monitter.com widget, which was almost exactly what I had in mind, except that it includes some really great, rich features that were well beyond what I needed. I adapted and simplified the monitter script to:

  1. Fix an issue with unescaped characters, e.g. hashes, in the search query.
  2. Fix an issue with ampersands in links in the linkify() function.
  3. Replace some deprecated HTML tags, e.g. , and fix other XHTML validation issues, e.g. using self-closing img tag.
  4. Fetch search results only once, rather than every few seconds (since Twitter sets a rate limit of 100 requests per-hour per-user, I found this to be necessary).
  5. Specify the number of tweets to return using an additional class.
  6. Remove the fade-in effect.
  7. Hyperlink each user’s profile image to their timeline.

Just like monitter, TwitStream utilizes the jQuery framework. Because jQuery is awesome.


Nguồn: www.jqueryrain.com/2012/08/twitstream-jquery-ajax-and-the-twitter-search-api/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận