Hi everyone:
I want to pass the next function to a rails in my view, because I tried
it but the results don´t be succesful. Anyone can help me? I know that
Ajax.PeridicalUpdater is periodically_remote call in ruby but don´t know
how to put in my view for obtain the same result that the following
function. THANKS!!!
<script type="text/javascript">
function lastSpy() {
var target = $('imagen');
if (!target) return false;
new Ajax.PeriodicalUpdater(target,
'http://localhost:3000/',{frequency:'0.25'})
}
Event.observe(window, 'load', lastSpy, false);
</script>
--
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.