# Image tag partial refresh

**URL:** <https://www.ruby-forum.com/t/image-tag-partial-refresh/183766>\
**Category:** Rails\
**Created:** [February 19, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/image-tag-partial-refresh/183766 "2010-02-19T18:58:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 19, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/image-tag-partial-refresh/183766/1 "2010-02-19T18:58:54Z")

</div>

Hi everyone

IÂ´m doing a web page, and I wanna to show a picture but this picture  
change every 10 minutes. I wanna to show it and refresh t automatically,  
but I want to refresh only the image. How can I do that

Thanks a lot

---

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 19, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/image-tag-partial-refresh/183766/2 "2010-02-19T19:12:36Z")

</div>

Guille S. wrote:

> Hi everyone
> 
> IÂ´m doing a web page, and I wanna to show a picture but this picture  
> change every 10 minutes. I wanna to show it and refresh t automatically,  
> but I want to refresh only the image. How can I do that
> 
> Thanks a lot

Sounds like you need to create a DIV with a timer and some javascript  
function to load a new image.

---

<div class="post-metadata">

**Author:** ![erwillie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Post date:** [February 19, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/image-tag-partial-refresh/183766/3 "2010-02-19T19:19:23Z")

</div>

Aldric G. wrote:

> Guille S. wrote:
> 
> > Hi everyone
> > 
> > IÂ´m doing a web page, and I wanna to show a picture but this picture  
> > change every 10 minutes. I wanna to show it and refresh t automatically,  
> > but I want to refresh only the image. How can I do that
> > 
> > Thanks a lot
> 
> Sounds like you need to create a DIV with a timer and some javascript  
> function to load a new image.

Yes, I read in the book “Ruby on rails for dummies” something like that  
but I so newbie to uinderstand that, anyone can explain it for me,  
please?

tHANKS
