# :popup=\> \["name", 'height=500,width=700'\] not working in IE

**URL:** <https://www.ruby-forum.com/t/popup-name-height-500-width-700-not-working-in-ie/68400>\
**Category:** Rails\
**Created:** [September 12, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/popup-name-height-500-width-700-not-working-in-ie/68400 "2006-09-12T12:30:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [September 12, 2006, 12:30pm UTC](https://www.ruby-forum.com/t/popup-name-height-500-width-700-not-working-in-ie/68400/1 "2006-09-12T12:30:24Z")

</div>

Hi,

This doesn’t work in IE, it opens in the current window :

\<%=link\_to  
material.name,{:controller=\>“materials”,:action=\>“show”,:id=\>material},  
:popup =\> [material.name, ‘height=500,width=700’]%\>

Does anyone know why? It works fine in Firefox.

Any help is appreciated

Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [October 11, 2006, 1:33am UTC](https://www.ruby-forum.com/t/popup-name-height-500-width-700-not-working-in-ie/68400/2 "2006-10-11T01:33:16Z")

</div>

I have the same problem with IE…does anybody know how to open up popup  
windows in IE??..Thanks

Chris wrote:

> Hi,
> 
> This doesn’t work in IE, it opens in the current window :
> 
> \<%=link\_to  
> material.name,{:controller=\>“materials”,:action=\>“show”,:id=\>material},  
> :popup =\> [material.name, ‘height=500,width=700’]%\>
> 
> Does anyone know why? It works fine in Firefox.
> 
> Any help is appreciated
> 
> Thanks  
> Chris

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [January 17, 2007, 2:31am UTC](https://www.ruby-forum.com/t/popup-name-height-500-width-700-not-working-in-ie/68400/3 "2007-01-17T02:31:22Z")

</div>

I’m having the same problem. I can get a popup in Firefox but not IE6.  
Has anyone figured this out? Thanks.

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [January 17, 2007, 5:48am UTC](https://www.ruby-forum.com/t/popup-name-height-500-width-700-not-working-in-ie/68400/4 "2007-01-17T05:48:24Z")

</div>

I figured it out. The example gave in the Rails doc is wrong:

link\_to “Busy loop”, { :action =\> “busy” }, :popup =\> [‘new\_window’,  
‘height=300,width=600’]

It should be:

link\_to “Busy loop”, { :action =\> “busy” }, :popup =\> [’\_blank’,  
‘height=300,width=600’]

According to MSDN, the second parameter in window.open is used as the  
TARGET attribute of an a element in HTML. So to pop up a new windows,  
use ‘\_blank’.
