Whatever you wanted to put in the link_to_function, put in the
onchange of the select. Note that since you don't want to make the
round trip to the server to render the partial, or update a div with
the contents of the partial, whatever you want to display as a result
of the user selecting something in the select box, needs to be already
on the page. You'll just show/hide divs depending on the user
selection.

On Feb 2, 11:01 am, Tarscher <[email protected]> wrote:
> Hi all,
>
> Depending on the selection in a selection box I need to render a
> partial. I want to do this without calling the server.  I think I need
> to use link_to_function. The problem is that I dont see how to
> implement this for a selection box. I also what to trigger the partial
> rendering immediately after the user made a selection in the box (and
> thus not clicking on a button)
>
> Thanks,
> Stijn
--~--~---------~--~----~------------~-------~--~----~
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