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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Victor
2006-Oct-10 23:33 UTC
Re: :popup=> ["name", ''height=500,width=700''] not working in
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-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
donut donut
2007-Jan-17 01:31 UTC
Re: :popup=> ["name", ''height=500,width=700''] not working in
I''m having the same problem. I can get a popup in Firefox but not IE6. Has anyone figured this out? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
donut donut
2007-Jan-17 04:48 UTC
Re: :popup=> ["name", ''height=500,width=700''] not working in
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''. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---