Mike
2007-Feb-16 23:36 UTC
How to hide a div section after pressing Submit button in a form_remote_tag
Hello, I''m having trouble with this, I have a form with form_remote_tag, every thing works ok, the remote function is called, I can render some partial, etc, but I can''t hide the div that contains the form, Do I need RJS or can where can call some DOM instrucctions since the remote function? Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Michael Kovacs
2007-Feb-17 00:41 UTC
Re: How to hide a div section after pressing Submit button in a form_remote_tag
Hi Mike, I had this implementation problem many months ago and I ended up using an RJS file to dismiss the div/dialog. I found that trying to use the on complete callback didn''t work for me. I wrote up a blog entry about my experience of creating a modal dialog with a form submission here: http://javathehutt.blogspot.com/2006/07/rails-realities-part-15-ajax- modal.html Hope that helps -Michael http://javathehutt.blogspot.com On Feb 16, 2007, at 3:36 PM, Mike wrote:> > Hello, > > I''m having trouble with this, I have a form with form_remote_tag, > every thing works ok, the remote function is called, I can render some > partial, etc, but I can''t hide the div that contains the form, Do I > need RJS or can where can call some DOM instrucctions since the remote > function? > > Thank you. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---