function itmerStart() { if (timerId) return timerId = setInterval(loadMessageListCron, 20000); function loadMessageListCron() { var userid = window.localStorage.getItem("userId"); if(userid != undefined) { alert("thread calling.."); $.ajax("http://abc.com/Rest/get_all_messages?UserId="+ userid).done(function(data) { var i, response; $.each(data.messages, function (i, response) { inboxMessageItmerStop(); insertMessages(response, i); inboxMessageItmerStart(); }); }); } } }
"Thread 14 WebCore: Database: EXC_BAD_ACCESS (code = 1, address = Oxbbadbeef)"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)