> Thanks for the reply,
> 
> Not being anything close to a JS coder, I had a little play but then
> gave up to wait for people's replies. I also posted this on the google
> ML for the plugin and a kind soul led me to this:
> 
> observe_field the start date, and render the end date from a partial.
> Whenever the start is modified, it calls the set_end_date action and
> replaces the end date element based on the params from the start.
> 
> I know this isn't the best way, and it does make an extra request when
> it probably doesn't need to, but it works :)
> 
> I will keep playing with it while I read up on some JS and see if I can
> make it more efficient using the method you're talking about.
> 
> Thanks
> 
> Matt

You can use observe_field to get the same effect, but I would use the
:function option so that you're doing the work on the client and not
posting an Ajax request. It will be much more responsive.
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to