Reputation: 1
Loading updated content every 15 seconds in to "MyDiv":
$.ajaxSetup ({
cache: false
});
setInterval(function(){
$('#MyDiv').load('content.php');
}, 15000);
Not working on Opera Mini.
Upvotes: 0
Views: 918
Reputation: 11245
Opera Mini just get the render result from server in OBML format and display it. Server where OBML has prepared can support delay javascript code like setInterval
, but there is the time limits, which are different from one version to another:
After this limit, all timers are ignored and page send from server to Opera Mini. In this limit your request must get the answer and complete all its callbacks. But where is no guarantee that all you requests will be faster than limit. So using ajax in timers for Opera Mini is a bad way.
P.S. All timers are from my experience and from dev.opera.com
Upvotes: 1