Forum: Ruby on Rails closing the pop-up window after submitting the form

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Eef7e57ef93b85fc09fe0d2babba2147?d=identicon&s=25 Deepa (Guest)
on 2007-03-13 08:58
Hi all,
      I am poping up a window by
             <%= link_to(image_tag(....), :action =>"sample", :popup =>
['new_window']) %> as I want the action "sample" to be performed and the
result should be displayed in the pop up. In the pop up window
say,"sample.rhtml", I have one submit button. I want this pop up to be
automatically close after submitting the form's text value to another
action. I have tried "onsubmit" in start_form_tag and form_remote_tag.
But its not working.Please help.

This topic is locked and can not be replied to.