473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

iframe Refresh Problem

Hello Everyone,

I have two files. File 1 is called HTMLPage.html. The content of this file
is

<html><head><meta http-equiv='refresh' content='1'
/></head><body><table><tr><td>0/0</tr></td></table></body></html>

If I view this file in IE, as expected the browser refreshes itself every 1
sec.

I have a second file which is called Test.html. The content of this file is

<html>
<head>
<script language="javascript">
var oHTTP;
var ifr;
function foo()
{
ifr = document.getElementById('ifr');
oHTTP = new ActiveXObject("Microsoft.XMLHTTP");
oHTTP.onreadystatechange = test;
oHTTP.open("GET", "HTMLPage.htm", true);
oHTTP.send(null);
}

function test()
{
if (oHTTP.readyState == 4)
{
if (oHTTP.status == 200)
{
ifr.contentWindow.document.write(oHTTP.responseTex t);
}
}
}
</script>
</head>
<body>
<form>
<input id="test" type="button" value="OK" onclick="javascript:foo()" />
<br/>
<iframe id="ifr" style="display:block" src="" scrolling="no"></iframe>
</form>
</body>
</html>

Basically, this file is trying to display the first file in an Iframe and
gets the content async.

The content is shown successfully. but the iframe does not refresh itself
every 1 sec as it was doing when the first file was loaded. The iframe seems
to be ignoring the meta fresh header.

Can anyone let me know why doesn't the iframe refresh itself when the same
HTML is displayed in an iframe? How can the iframe be made to refresh itself
every 1 sec?

regards,
Abhishek.
Jun 13 '06 #1
0 2023

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Conax | last post by:
Hi, It's me again asking about IFRAME. With UncleWobby, Steven Burn and Roland Hall's help, I was able to create a proper IFRAME section on my page. Now I come to the next problem. I'd...
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
12
by: wangzx | last post by:
I am the author of easyajax.sourceforge.net, and I have a problem on Firefox 1.5, I post the problem here and hopes somebody help me. The test page can be:...
26
by: shlomi.schwartz | last post by:
using this example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test Page</title> </head>
1
by: spolsky | last post by:
hi, i have the following pages. when form submitted with the field1 value is "ok" then the iframe must be loaded with the text "Page loaded...". This works fine with IE 6 and FireFox(1.5) but...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
6
by: bnashenas1984 | last post by:
Here you can see the script I found in google to refresh a page without hearing any click sound which is usual to hear when a link is clicked or a page is refreshed. <script...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.