# A new window after a form? How?

**URL:** <https://www.ruby-forum.com/t/a-new-window-after-a-form-how/82191>\
**Category:** Rails\
**Created:** [January 17, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/a-new-window-after-a-form-how/82191 "2007-01-17T22:40:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@rudy](https://www.ruby-forum.com/u/rudy)\
**Post date:** [January 17, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/a-new-window-after-a-form-how/82191/1 "2007-01-17T22:40:44Z")

</div>

I looked for an answer here, but couldn’t find it. Although it seems  
obvious. I have a form. After the user makes his choices, I want to  
have a new window with the results, not a replace. :popup does not  
work, as I read here, 'cause it is not a link\_to, but a form. I think I  
have to call for the new window from the controller at the end of the  
action, but what I found (page.call…) does not seem to work. I  
obviously am missing something, but haven’t got a clue. Again. ☹ .  
Help would be greatly appreciated. Again. 🙂

---

<div class="post-metadata">

**Author:** ![rudy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@rudy](https://www.ruby-forum.com/u/rudy)\
**Post date:** [January 18, 2007, 5:42am UTC](https://www.ruby-forum.com/t/a-new-window-after-a-form-how/82191/2 "2007-01-18T05:42:30Z")

</div>

Rudy wrote:

> I have a form. After the user makes his choices, I want to  
> have a new window with the results, not a replace.

Hi Rudy,

Easiest approach is probably to write a little JS that gets invoked on  
the  
form’s onSubmit.

hth,  
Bill
