Page 1 of 1

not refreshing file in iframe after sometime

Posted: Fri Sep 11, 2009 2:21 am
by narottamsaini
Hello Friends,
This is narottam, actully i m working on a php chat application in which on a page i m using i frame which includes a file that file refreshing in each 2 sec.

<iframe id="frm" name="frm" src="array.php" width="950" height="400" frameborder="0" scrolling="no" style="display:none;"></iframe>


array.php have php code and refreshing in every 2 sec.

the problem is that code is working fine with mozilla firefox,opera,safari,chrome,netscape but in case of IE after some time suddenly IE stop the execution and window goes hand. i tried a lot but every thing vain. please help me out sorry for my english :banghead:

Re: not refreshing file in iframe after sometime

Posted: Fri Sep 11, 2009 5:34 am
by Weiry
what sort of refresh are you using at the moment?
you could try using a meta refresh if you aren't already.
You would put this code in your array.php

Code: Select all

    <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
        <html>
        <head>
            <meta http-equiv='refresh' content='2;url=array.php'>
        </head>
        </html>

Re: not refreshing file in iframe after sometime

Posted: Fri Sep 11, 2009 5:55 am
by narottamsaini
thanks for replay
i m using
<script language="javascript" type="text/javascript">

function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}
</script>
<script language="javascript" type="text/javascript">
timedRefresh(2000);
</script>
for refresh array.php
i have already tried meta refresh its showing same problem with ie only