468,766 Members | 1,345 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,766 developers. It's quick & easy.

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 3226
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Conax | last post: by
19 posts views Thread by Jay | last post: by
2 posts views Thread by Jeronimo Bertran | last post: by
4 posts views Thread by Bruce W.1 | last post: by
reply views Thread by Brad White | last post: by
3 posts views Thread by Kevin | last post: by
reply views Thread by Abhishek Srivastava | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.