Wes Gamble
2006-Aug-24 04:55 UTC
[Rails] AJAX insanity: Is :update required in form_remote_tag?
All, Is this a valid for_remote_tag statement? <%= form_remote_tag( :url => { :action => ''send_proof'' } ) %> or do I have to have an :update parameter to provide a return target for the AJAX request? Thanks, Wes -- 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 -~----------~----~----~----~------~----~------~--~---
Dr Nic
2006-Aug-24 06:27 UTC
[Rails] Re: AJAX insanity: Is :update required in form_remote_tag?
Only if you are returning a chunk of HTML that you want to replace into a target object. If you''re returning RJS, then do don''t need the :update (otherwise it will insert the javascript into the target :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2006-Aug-24 06:47 UTC
[Rails] Re: AJAX insanity: Is :update required in form_remote_tag?
Yup, it was inserting the Javascript into the target :). I discovered that my issue was just the extreme finickiness of script.aculo.us. For example, script.aculo.us doesn''t like it when you ask to hide a DOM element that doesn''t exist on the page and the RJS template completely fails. I''m not sure that I would say it was two hours well - spent, but I do know a couple more RJS methods than I did before and I expect RJS templates to break if I breathe on them wrong. So my expectations are set better, now if I could just trade that in for more sleep. Thanks for the reply. Wes -- 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 -~----------~----~----~----~------~----~------~--~---