jQuery cannot retrieve data from localhost
Posted
by fatnic
on Stack Overflow
See other posts from Stack Overflow
or by fatnic
Published on 2010-03-23T23:45:39Z
Indexed on
2010/03/23
23:53 UTC
Read the original article
Hit count: 358
I have a very simple bit of jQuery to retrieve my latest Tweet
$.getJSON("http://twitter.com/statuses/user_timeline/username.json?count=1",
function(data) {
$("#tweet_text").html(data[0].text);
});
This works fine on a simple HTML file on my desktop. However, once the file is accessed from my localhost (apache) no data is being returned. I was wondering if any part of Apache was blocking the request somehow? Or any other ideas?
© Stack Overflow or respective owner