How do I handle twitter fail whale in JSONP
问题 I load http://search.twitter.com/search.json?callback=formatTweets&q=somehashTag×tamp="+new Date().getTime(); I suddenly got Error: illegal character Source File: http://search.twitter.com/search.json?callback=formatTweets&q=sunshine×tamp=1305631097599 Line: 1, Column: 13 Source Code: formatTweets(� because twitter sent me a fail whale. Can you think of a way to detect and handle this? Here is my invocation: function loadTweets() { var head = document.getElementsByTagName('head');