Forum Moderators: open
{"results":[{"text":"some text that i want here","from_user":"Bill".....
The code below is giving me an invalid label.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$.getJSON("http://search.twitter.com/search.json?q=twitter&jsoncallback=?", function(data) {
$.each(data.results, function(i,item){
$("#tweet").append('<h1>' + item.text + '</h1>');
});
});
});
</script>
</head>
<body>
<div id="tweet"></div>
</body>
</html>
$.getJSON("http://search.twitter.com/search.json?callback=?&rpp=50&q=opera", function(data) {
$.each(data.results, function(i, item){
$("#tweet").append(item.text + '<br />');
});
});