Hi everyone:
I probe to use the function that Frederick says, but it doesn´t work
because mi image don´t load the new periodical image. Where I´m doing
something wrong??
<script type="text/javascript">
function lastSpy() {
var target = $('imagen');
if (!target) return false;
new Ajax.PeriodicalUpdater(target,
'http://localhost:3000/',{frequency:'1'})
}
Event.observe(window, 'load', lastSpy, false);
document.observe("dom:loaded", function() {
$$('imagen').invoke('hide');
});
</script>
<div id="imagen" >
<%=image_tag("/guarrada/Debug/foto.jpg") %>
</div>
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.