# Link\_to issues with I.E

**URL:** <https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802>\
**Category:** Rails\
**Created:** [May 22, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802 "2007-05-22T19:33:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 22, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/1 "2007-05-22T19:33:30Z")

</div>

I have a problem with I.E 6 & 7

I have a link with :popup =\> true, and sometimes (but not all the time)  
the window will pop up in a new window and open up in the same window.

You can check it out [http://www.showsinlasvegas.com/pages/show](http://www.showsinlasvegas.com/pages/show)

It works fine with fire fox, opera and safari.

Any ideas would be awesome.

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 22, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/2 "2007-05-22T20:11:47Z")

</div>

Jeremy W. wrote:

> I have a problem with I.E 6 & 7
> 
> I have a link with :popup =\> true, and sometimes (but not all the time)  
> the window will pop up in a new window and open up in the same window.
> 
> You can check it out [http://www.showsinlasvegas.com/pages/show](http://www.showsinlasvegas.com/pages/show)
> 
> It works fine with fire fox, opera and safari.
> 
> Any ideas would be awesome.

I forgot to mention, that after you go to

> **[Shows / Concerts Archives](https://vegas411.com/shows-concerts/)**
>
> All the Shows and Concerts Activities that you know about in Las Vegas.

you have to choose a show, then click the seating chart link on the  
right side.

I’m using:  
\<%= link\_to(‘Seating Chart’, { :controller =\> ‘pages’, :action =\>  
‘seating\_chart’, :id =\> @show }, :popup =\> true) %\>

to generate the link.

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 22, 2007, 8:19pm UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/3 "2007-05-22T20:19:16Z")

</div>

Hi, could you post the relevant code snippet for people to better assist  
you?

Thanks,

-Conrad

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 22, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/4 "2007-05-22T22:58:33Z")

</div>

It sounds to me like you are re-using the window object. Try opening the  
popup with a unique window name, possibly derived from the object id.

For example:  
link\_to “Open Show”, { :action =\> “view” }, :popup =\> [@show.id,  
‘height=300,width=600’]

Regards,  
Dave

* * *

Information and Educational Technology  
Kwantlen University College - 604-599-2120  
“So powerful is the light of unity that it can illuminate the whole  
earth.” --BahÃ¡'u’llÃ¡h

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 23, 2007, 2:27am UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/5 "2007-05-23T02:27:49Z")

</div>

Make sure the window name is \_blank

```
                <%= link_to(foo.name,
                  { :controller => 'foo_controller',
                    :action => 'foo_details',
                    :id => foo
                  }, :popup => ['_blank', 'width=720, height=250'])

```

%\>

On May 22, 4:03 pm, Jeremy W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 23, 2007, 1:03am UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/6 "2007-05-23T01:03:11Z")

</div>

David D. wrote:

> It sounds to me like you are re-using the window object. Try opening the  
> popup with a unique window name, possibly derived from the object id.
> 
> For example:  
> link\_to “Open Show”, { :action =\> “view” }, :popup =\> [@show.id,  
> ‘height=300,width=600’]
> 
> Regards,  
> Dave
> 
> * * *
> 
> Information and Educational Technology  
> Kwantlen University College - 604-599-2120  
> “So powerful is the light of unity that it can illuminate the whole  
> earth.” --BahÃ¡'u’llÃ¡h

Sweet. your my new best friend. That worked.

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [May 30, 2007, 2:36am UTC](https://www.ruby-forum.com/t/link-to-issues-with-i-e/104802/7 "2007-05-30T02:36:05Z")

</div>

There an alternative that worked for me:

> ```
> <%= link_to(foo.name,
> { :controller => 'foo_controller',
> :action => 'foo_details',
> :id => foo
> }, {target=>'_blank'})
> ```
