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
It works fine with fire fox, opera and safari.
Any ideas would be awesome.
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
It works fine with fire fox, opera and safari.
Any ideas would be awesome.
I forgot to mention, that after you go to
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.
Hi, could you post the relevant code snippet for people to better assist
you?
Thanks,
-Conrad
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
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. [email protected]
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.
There an alternative that worked for me:
<%= link_to(foo.name,
{ :controller => 'foo_controller',
:action => 'foo_details',
:id => foo
}, {target=>'_blank'})