We have a web site where we use iframe to load some data (iframe long polling). This data can be loaded automatically, e.g. every 2 minutes. When this web site is opened in IE (tried in latest 9 version) it will send request each 2 minutes. That's okay.
But when we open another browser (or program) and IE is not in focus - during each request IE will grab a focus to itself...
Maybe somebody know how to fix this (prevent IE to steal the focus)? As I understand Ajax requests can fix this, but this can be difficult to update...
Update:
From server (in Iframe) we return something like this:
<html><body>
<script>parent.MailChecker.updateStatus({"s":"Connecting to xxx@gmail.com...","p":0,"c":null,"e":false})</script>
<script>parent.MailChecker.updateStatus({"s":"Preparing to fetch emails...","p":0,"c":null,"e":false})</script>
<script>parent.MailChecker.updateStatus({"s":"Downloading 1 email from 35...","p":2.8571428571429,"c":null,"e":"784"})</script>
<script>parent.MailChecker.updateStatus({"s":"Downloading 2 emails from 35...","p":5.7142857142857,"c":null,"e":"784"})</script>
...
<script>parent.MailChecker.updateStatus({"s":"Done!","p":100,"c":"0","e":false})</script>
</body></html>