Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing an IFrame

Status
Not open for further replies.

naiku

Technical User
Apr 25, 2002
346
US
Currently the page I am working on refreshes every 5 seconds, the problem is my ISP's counter decides to increment every time it refreshes (and they won't allow me to use any others, its only a free service) so while the number constantly increasing looks good it will only be a matter of time before someone figures out why its so big!

If I place the content that I want refreshed every 5 seconds (its a webcam image) onto an IFrame can I then simple refresh only the IFrame leaving the rest of the page as it is. Or is there a way I can simply refresh the image alone?

Thanks

Naiku
 
Sorted out the refreshing of the Iframe, still curious to know if its possible to refresh only an image though...
 
It IS possible to refresh only the image. I can't remember how, though. It would seem like something like this might work (it does if the image1.src ='02.JPG';). It gives me a downloading image from ... but the image doesn't change. I've heard of adding a # sign followed by an image to make it refresh ie. #23409835 but that's not working either.

<script>
<!--
function change_img(){
image1.src='01.JPG';
}
//-->
</script>
<img id=&quot;image1&quot; src=&quot;01.JPG&quot; onClick=&quot;change_img()&quot;>

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top