|The only downside of using IFRAME for AJAX is that Internet Explorer makes an annoying "click" sound when opening a new page. This can be disabled in the browser, but not programatically, so visitors to our AJAX-with-IFRAME pages here a click every time the IFRAME refreshes.|
We even built a web-based IM client using IFRAMES instead of XMLHttpRequest object because the IE browsers at this particular client would crash any time the XMLHttpRequest object was loaded even though their version of IE supported it and ActiveX was turned on.
|2006-03-31 16:54:06 - In reply to message 1 from David Ethell|
|Instead of stay sending requests to IFrame sequentially, you use a technique that you can send only one request and use it during until 20 minutes (Apache default timeout limit).|
All you have to do is to make a while counting the time and make a sleep at the end of each request.
This solves the "tic" problems for at least 20 minutes... not one "tic" at each 20 minutes isn't so anoying... =)
|2006-03-31 17:29:36 - In reply to message 1 from David Ethell|
|I was just discussing the click problem with Guilherme on the other day.|
Depending on how you implement it, this is a legitimate concern, because you may really annoy the users with excessive click sounds.
Guilherme presented an example of a chat system or another kind of application that needs to regularly poll the server for any updates.
This way, you would hear only one click.
|2006-04-02 23:18:07 - In reply to message 3 from Manuel Lemos|
|And you do not have the same back button problem when using a Iframe.|
|2006-07-03 13:06:17 - In reply to message 2 from Guilherme Blanco|
|Am my missing something here ? As far as i know most PHP installations will terminate script execution after 30 seconds. So how can one keep a http connection alive 20 minutes if the server feedback terminates befor that ?|
|2006-07-03 13:15:23 - In reply to message 5 from Swen Horvath|
|If you set PHP time limit to 0, PHP will not halt the script at all.|