On Thu, Jun 4, 2009 at 10:37 AM, Frederick Cheung <[email protected]> wrote: > > > > On Jun 4, 3:34 pm, Mk 27 <[email protected]> wrote: >> >> <% form_remote_tag :update => 'dud', :url => {:action => 'the action'} >> do%> >> >> I just tried this and nothing complains if you try to update a >> non-existent page element ('dud'), so that will work. The page with the >> form remains with nothing changed, but the controller does process the >> form. > > You could even drop the :update option completely.
Although, the OP actually said "The termination of the controller I must write does nothing to the view (actually, I merely need to execute a little javascript, closing some divs, etc). " Which seems self-contradictory, if you take view as being what the end-user sees. If there are divs to be closed, or whatever, DOM changes need to be effected. So I think one or more callbacks (:success, :failure, :complete) are needed to close/hide those divs, and perhaps some rendered javascript from the request if what needs to be done depends on server state as a result of the request. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

