Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1430 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

jQuery and Twitter

Thread title: jQuery and Twitter
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
06-13-2009, 11:03 PM
#1
fredkelly is offline fredkelly
Status: I'm new around here
Join date: Jul 2008
Location:
Expertise:
Software:
 
Posts: 7
iTrader: 0 / 0%
 

fredkelly is on a distinguished road

  Old  jQuery and Twitter

Hi There,

I'm trying to make a simple script to get my most recent twitter update using jQuery and the twitter API. The simple function I have is below:

Code:
function get_twitter() {
	$.getJSON("http://twitter.com/statuses/user_timeline/fredkelly.json?count=1&callback=?", function (data){
	  	alert(data);
	});
}
This currently returns '[Object] object' or similar. I think I need to decode the response and then somehow select parts of the response e.g. text and date of the message - but I'm not sure how to go about this.

Could anyone offer some help - I'm not sure if I'm going about this in the right way at all!

Cheers,
Fred

Reply With Quote
     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed