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

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

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

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

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’.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs