473,385 Members | 1,769 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,385 software developers and data experts.

How to refresh an iframe content

J-T
Hello,

I have an iframe which its scr is set to show a url (am image) .I am put
this iframe on a user control and I am loading that user control dynamically
to my Default.aspx.Now I need to refresh the content of the iframe every 2
minutes .I used a java script code in user conrol ,the referesh happens but
the content of the iframe dosen;t get changed,I mean it dosen;t get refresh!

How can I do that?

Thanks
Nov 19 '05 #1
2 3432
Are you calling a page with an image as the SRC for the IFrame or just an
Image?
If it's the image directly you should be able to put a timer on the parent
page and have it kick off the Load() of the IFrame...
You'll have to show code if it's not working though.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"J-T" wrote:
Hello,

I have an iframe which its scr is set to show a url (am image) .I am put
this iframe on a user control and I am loading that user control dynamically
to my Default.aspx.Now I need to refresh the content of the iframe every 2
minutes .I used a java script code in user conrol ,the referesh happens but
the content of the iframe dosen;t get changed,I mean it dosen;t get refresh!

How can I do that?

Thanks

Nov 19 '05 #2
J-T
Hello,
Here is my iframe code :
<iframe
src="http://www.tehrantraffic.com/gif.asp?g=cam3_ttcc_00001.jpg&t=TTCC%20website"></iframe>

I have no access to the page that I am rendering it in my iframe.What code I
should write in the timer elapsed event handler to refresh the page ?

Thanks a lot for your help

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:3D**********************************@microsof t.com...
Are you calling a page with an image as the SRC for the IFrame or just an
Image?
If it's the image directly you should be able to put a timer on the parent
page and have it kick off the Load() of the IFrame...
You'll have to show code if it's not working though.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"J-T" wrote:
Hello,

I have an iframe which its scr is set to show a url (am image) .I am put
this iframe on a user control and I am loading that user control
dynamically
to my Default.aspx.Now I need to refresh the content of the iframe every
2
minutes .I used a java script code in user conrol ,the referesh happens
but
the content of the iframe dosen;t get changed,I mean it dosen;t get
refresh!

How can I do that?

Thanks

Nov 19 '05 #3

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...
19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
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...
4
by: Bruce W.1 | last post by:
My web app refreshes once a minute, using a meta refresh tag. Is there a way to eliminate the tick sound emitted by IE when it refreshes? Thanks for your help.
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
3
by: Kevin | last post by:
Hi guys, I want to refresh some pages every 2 seconds. however, these html pages are not in my site, they could be any pages from yahoo.com or msn.com. I can create a page, which redirect to...
0
by: Abhishek Srivastava | last post by:
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'...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.