# Page.toggle

**URL:** <https://www.ruby-forum.com/t/page-toggle/184435>\
**Category:** Rails\
**Created:** [March 2, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/page-toggle/184435 "2010-03-02T16:08:03Z")\
**Posts on this page:** 1\
**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:** [March 2, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/page-toggle/184435/1 "2010-03-02T16:08:03Z")

</div>

Hi everybody:  
I want to hide an image while it loading, I think that page.toggle itÂ´s  
a good idea but it doesnÂ´t work, some one can help me.  
Here my source code

\<%= javascript\_include\_tag 'prototype' %\>

\<%= page.toggle ‘imagen’%\>

```
</script>

```

 \<%=periodically\_call\_remote(:url =\> 'http://localhost:3000/', :frequency =\> '1', :update =\> 'imagen')%\>
\<%=image\_tag("/guarrada/Debug/foto.jpg") %\> \<%=page.toggle 'imagen'%\>

THANKS
