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 <head> <%= javascript_include_tag 'prototype' %> </head> <script type="text/javascript">
<%= page.toggle 'imagen'%>
</script> <body onload="actualizador()"> <%=periodically_call_remote(:url => 'http://localhost:3000/', :frequency => '1', :update => 'imagen')%>
<div id="imagen"> <%=image_tag("/guarrada/Debug/foto.jpg") %> <%=page.toggle 'imagen'%> </div> </body>
THANKS