Forum: Ruby on Rails How to hide a div section after pressing Submit button in a

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A073d473b34f181a095f7b8f4be931aa?d=identicon&s=25 Mike (Guest)
on 2007-02-17 00:37
(Received via mailing list)
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.
361ba1bcc1d2c5a8885dd093dbb96bb6?d=identicon&s=25 Michael Kovacs (Guest)
on 2007-02-17 01:42
(Received via mailing list)
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-real...
modal.html

Hope that helps

-Michael
http://javathehutt.blogspot.com
This topic is locked and can not be replied to.