How about refreshing the select list using rjs?
On Tue, Dec 23, 2008 at 3:34 PM, Brian Penrose <
rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
> I have several select lists on a form generated via collection_select
> pulling values from the database. What I would like to do is, if new
> components need to be added to a select list (new options), I am
> providing a link beside the select list which will pop-up a small form
> to add a new item to the list. Upon saving the new item, I would like
> the list on the form (parent window) to refresh, so that the new item
> can be selected. I have tried both opener.location.reload(), which
> updates the lists but unfortanately wipes out all fields on the form,
> and window.opener.history.go(0), which keeps the field values, but does
> not refresh the select lists as needed. Any suggestions on how I can
> accomplish this? TIA.
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---