On Thu, Oct 27, 2011 at 16:32, Max <aamax@xmission.com> wrote:
> seems i should be able to select the link and have it process an
> update on the item behind the scenes and then re-display the page (or
> if i get fancier later - use ajax to red-display the item?)...
You're right, you don't need a form to process anything. What springs
to my mind offhand is to have the link send an AJAX request to the
server, to clear/set the field in question, and when you get back the
confirmation, show it on the screen as cleared/set. (Most likely by
getting back the data for the new value of the whole item, and
updating the item's representation on the view.)
-Dave
--
LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment