I am currently using EPITwitter to get a users home timeline. However, I am trying to use an ajax call to get updated results on the timeline when a user scrolls past a certain point. So for my ajax call I am echoing json like this:
$home=$account->get_statusesHome_timeline(array('count' => 20, 'max_id' =>$id));
foreach($home as $tweet)
{
echo json_encode($tweet);
}
But when I try to parse the json nothing happens. I’ve tried usiing eval like this:
var parse=eval('(''+request.responseText+)');
And I also downloaded json_parse.js. from json.org and tried doing this:
var parse=JSON.parse(request.responseText);
Literally NOTHING is working for me. I have tried working on this for a couple hours to no avail. What am I doing wrong?