473,569 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iframe Refresh Problem

Hello Everyone,

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

<html><head><me ta http-equiv='refresh' content='1'
/></head><body><tab le><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="javas cript">
var oHTTP;
var ifr;
function foo()
{
ifr = document.getEle mentById('ifr') ;
oHTTP = new ActiveXObject(" Microsoft.XMLHT TP");
oHTTP.onreadyst atechange = test;
oHTTP.open("GET ", "HTMLPage.h tm", true);
oHTTP.send(null );
}

function test()
{
if (oHTTP.readySta te == 4)
{
if (oHTTP.status == 200)
{
ifr.contentWind ow.document.wri te(oHTTP.respon seText);
}
}
}
</script>
</head>
<body>
<form>
<input id="test" type="button" value="OK" onclick="javasc ript: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 2029

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

Similar topics

0
3327
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 like to be able to:
2
23486
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 iframe on my page whose html has the refresh meta as follows : <meta http-equiv="refresh" content="10"> The iframe is effectivelyh refreshed...
12
2474
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: http://easyajax.sourceforge.net/demo/overview.html The page works well in Firefox 1.0.* and IE 6.0, and Opera 8.5, but it doesnt work on Firefox 1.5, the first time you open the page,...
26
3212
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
7972
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 Opera (9.01) does not refresh the iframe and loads the page for iframe from the cache, so refreshing the page gets the iframe refreshed with the new...
3
4474
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 includes background music with a javascript music player on the main page below an iframe that is used for all content and navigation of the site and...
6
5131
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 type="text/javascript" > window.onload = doLoad; function doLoad() { setTimeout( "refresh()", 5*1000 );
0
7628
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7938
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8145
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6317
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2128
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.