chris
September 12, 2006, 12:30pm
1
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
chris
October 11, 2006, 1:33am
2
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
chris
January 17, 2007, 2:31am
3
I’m having the same problem. I can get a popup in Firefox but not IE6.
Has anyone figured this out? Thanks.
chris
January 17, 2007, 5:48am
4
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’.