<div id="jTweetsAnywhereSample">
</div>
<script type="text/javascript">
$(document).ready(function() {
$('#jTweetsAnywhereSample').jTweetsAnywhere({
searchParams: ['q=Oktoberfest'],
count: 5,
locale: 'de',
showTweetFeed: {
autoConformToTwitterStyleguide: true,
showTimestamp: {
refreshInterval: 15
},
autorefresh: {
mode: 'trigger-insert',
interval: 30
},
paging: { mode: 'more' }
},
onDataRequestHandler: function(stats, options) {
if (stats.dataRequestCount < 11) {
return true;
}
else {
stopAutorefresh(options);
}
}
});
});
</script>
Here's the code to create the tweet feed.
It is very similar to the auto-refreshing realtime ticker sample. The controls' labels and messages are in 'deutsch'.