On Feb 15, 2011, at 12:40 PM, pipplo wrote:
Hi
I want to show some info and provided an 'edit' button next to it.
This will change the display info to an editable form.
Have a google for "rails in-place editor" and feast on the many links.
But be sure to look for one that works on your version of Rails.
I've seen this done before, but what I can't figure out is whether I
have to use an actual remote action to the rails server?
You do if you expect to persist the result of the edit. The initial
form will load up with the HTML from the page itself, so no lookup
needed to get started.
Walter
I think I should be able to render both the edit box and the display
info as seperate divs, and then show/hide them based on clicks. I
have this working with link_to_remote and an rjs file with page.show
and page.hide, but this requires each click to have communication with
the server.
What I'm wondering is whether this can be done without making the
query to the server? Basically pure javascript with no server ping?
--
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-
[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
.
--
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.