On Jul 19, 5:18 pm, Transistor
<transistor....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi everyone, I''m new to this group.
> My question has to do with PeriodicUpdater.
> I have it working quite well, but I want to improve my script:
> <script type="text/javascript">
> new Ajax.PeriodicalUpdater(''control'',
''control/connected.html, {
> method: ''get'',
> frequency: 60,
> decay: 1
> });
> </script>
> So, every minute, the script fetches connected.html which is a php
> file that gets a number of connected users.
> Like I said, this works perfect, but I want to improve it.
> I want to have a <select> from where the user can choose from
> different values to update.
>
> 1) how can I pass the value of the <select> to the frequency value in
> the PeriodicalUpdater?
> 2) how can I put this script out of the HTML?
>
> Thank you.
> Joe
To get access to form vars you would use $F and just use onclick in
the submit -- NOTE I am really new to javascript so this may be not so
useful to you if you are also. However since no one has responded to
this as of yet ... I thought I would try to lend a hand.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---