Hi guys, quick question: I get the following error: "length is zero or not an object" in IE 8, who has any ideas? Feedback is much appreciated ...
function refresh() { $.getJSON(files+"handler.php?action=view&load=update&time="+lastTimeInterval+"&username="+username+"&topic_id="+topic_id+"&t=" + (new Date()), function(json) { if(json.length) { for(i=0; i < json.length; i++) { $('#list').prepend(prepare(json[i])); $('#list-' + count).fadeIn(1500); } var j = i-1; lastTimeInterval = json[j].timestamp; } }); }
javascript jquery internet-explorer
Scarface
source share