Hello,
I am using the javascript setinterval to try and make something appear and then disappear after 3 seconds. When the showdiag() function is executed it works great the first time, but the next times the setinterval() lasts about 1 second or less. Not sure why this is happening.
function showDiag(){
phoneui.showActivityDialog("Page Is Loading");
setInterval(function(){phoneui.hideActivityDialog()}, 3000)
}
I have tried several variations including setinterval(Hide, 3000) Where Hide() was another function and it has the same effect as the previous example.
I want it wait 3 seconds each time, not just the first time it is executed.
Thanks