I'm trying to load via Ajax the last post of a twitter account. I have the url, which is :
http://twitter.com/statuses/user_timeline/myuser.json?count=1
This works :
$.get("test.php", function(data){
alert("Data Loaded: " + data);
});
This doesn't even make a request if I monitor the console in Firebug :
$.get("http://twitter.com/statuses/user_timeline/myuser.json?count=1", function(data){
alert("Data Loaded: " + data);
});
And I'm having the same kind of problem with .load, .post, .ajax ...
How could I do this ?
Edit :
I tried using getJSON :
$.getJSON("http://twitter.com/statuses/user_timeline/user.json?count=1",
function(data){
alert("here");
});
... still nothing, I don't even get the alert.