# Pop up window

**URL:** <https://www.ruby-forum.com/t/pop-up-window/170943>\
**Category:** Rails\
**Created:** [June 24, 2009, 10:22am UTC](https://www.ruby-forum.com/t/pop-up-window/170943 "2009-06-24T10:22:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [June 24, 2009, 10:22am UTC](https://www.ruby-forum.com/t/pop-up-window/170943/1 "2009-06-24T10:22:26Z")

</div>

Rails ha an option pop\_up to helper link\_to  
However this options does not put focus on the pop up window whic  
means that it coud be hidden below other windows  
The script should rather be window.open (…). focus(), than as now  
window.open (…)

Anyone that knows how to solve that problem ?  
Is there a patch ?  
Can it be solved through any kind of options in the helper ?

* * *

Hans M.  
Prof Cognitive Ergonomics  
St: Larsgatan 50, 58224 Linköping, Sweden  
Phone: +46708371202

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [June 24, 2009, 11:59am UTC](https://www.ruby-forum.com/t/pop-up-window/170943/2 "2009-06-24T11:59:50Z")

</div>

Hello Hans,  
I use the popup option and it just opens a new tab with focus on it.  
Which browser and version are you using? I am on Firefox 3.0.11  
Bharat

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [June 24, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/pop-up-window/170943/3 "2009-06-24T14:31:06Z")

</div>

Hi Hans,  
I donÂ´t know if it’s the case,but maybe you should take a look at some  
plugins for modal dialogs.IÂ´m using Redbox and it fits perfectly well on  
my app.

Regards,  
Rafael R.

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [June 24, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/pop-up-window/170943/4 "2009-06-24T16:56:57Z")

</div>

Thanks for your answeres

Bharat  
Yes, but what happens if you put the pop up window behind another  
window and then tries to open it again.  
I use the latest version of firefox and it opens a new window and not  
a tab (my setting i firefox, I will try to change it ?), and the first  
time the window is a top window, but if I move it back,it will ot pop  
up when I open it again

Rafael  
I use redbox also but redbox does not create another window

What I also whant to do is to open another browser, not a window owned  
by the current browser, but as I understand, that is not permitted,  
or !!! ?
