I have an event that I'm firing every 5 seconds to check if a file has finished processing.
I'm doing the following:
if (InSuppArray(item.Id) == false && item.Status() == "Queue") {
var t = setTimeout(function () { checkQueuedSupp(item.OrderId) }, 5000);
suppIds.push({ Id: item.OrderId, TimerId: t });
}
Basically, multiple files can be uploaded so this created an array of timers and kills them as the files completes.
This works great in Firefox and Chrome, but the timer only fires one time in Internet Explorer.
Is there a better way to do this? I searched around and found some issues with IE and setTimeout
but most of those were alluding to the fact that it just never works in IE, which mine at least fires once.