Yes. Place the select box inside a partial. Then use RJS to update the
partial after the value is saved on the server. That''s how we solved
this.
On 12/19/06, Josh Rickard
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
>
> Hi all,
>
> I''m developing an app that lists tasks sequentially. I''m
attempting to
> make the tasks very easy to update using ajax techniques --
> in_place_edit for the text fields and an observe_form to watch the
> select boxes for change. When one of the select boxes changes it will
> fire off an ajax update method on my controller which in turn updates
> the database.
>
> The problem I''m running in to is that if someone else changes one
of the
> select boxes to a different value, my screen will retain the old value
> even if i do a refresh of the page. The only way it will update is if i
> navigate away from the current page and then navigate back to it.
I''m
> assuming that firefox does some kind of caching of form options because
> if I look at the actual source after only doing a refresh of the page
> (not navigating away), the actual code is correct but the browser is not
> display the option that is select="selected". This also causes
problems
> when I''m updating the select boxes that would cause the order of
the
> list to change. If I refresh the page the select boxes are not correct.
>
> Internet Explorer (for once!) is actually updating ok. Does anyone have
> any suggestions for dealing with this behavior in firefox?
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---