I’m using the following code to get a JSON string that I’m going to parse into a table of Twitter statuses.
var fileref = document.createElement('script');
fileref.setAttribute("type","text/json");
fileref.setAttribute("src", "http://search.twitter.com/search.json?q=centrikidcamps&callback=TweetTick&rpp=10");
The callback parses them and sets them up – at least it has for the past couple of days. But now I get inconsistent return values. Specifically, sometimes I get TweetTick({“results”:[ … ) which is what I want. And sometimes I get {“completed_in … which results in a parse error. I got this code snippet from the site below (I’m providing this for credit and as a demo example). Is this a transient Twitter thing? Should I be doing things differently to prevent this? Thanks!
it will work few times and sometimes not
weird. it looks first response of
http://search.twitter.com/search.json?q=Twitter%20API&result_type=mixed&count=5&callback=resx
starts with:
and next time it starts with
it’s their problem…