Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2005, 03:32 PM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 62
Thanks: 0
Thanked 1 Time in 1 Post
Default Problems with Popup Window in IE

I am having an issue with popup windows. I have about 50 thumbnail images that I need top open a popup window in which I use ASP to populate different results from a database. My images are linked like this:

<a href="../../show_make_dealers.asp?tag=AL&make=Acura" onClick="return popup(this, 'Acura Dealers')"><img src="../../images/acura.gif" border="0"></a>

The function looks like this:

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=710,height=450,left='+(screen.width-500)/2+', top='+(screen.height-300)/2+', resizable=no, scrollbars=yes, toolbars=no, location=no, directories=no, status=no, menubar=no, copyhistory=no');
return false;
}

It works in firefox fine, but when I attempt to use this in IE it just opens in the same window, any ideas?

 
Old June 22nd, 2005, 03:21 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Do you mean that each thumbnail reuses the same popup to display the full image? If so change the name parameter to be "_blank" rather than "Acura Dealers".

--

Joe (Microsoft MVP - XML)
 
Old June 22nd, 2005, 10:08 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 62
Thanks: 0
Thanked 1 Time in 1 Post
Default

Good lord, I cant believe I didn't see that. LOL!

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
get popup window value without refresh qadeerahmad General .NET 6 August 4th, 2006 10:49 AM
Gridview and Popup Window Yusuf ASP.NET 2.0 Basics 2 April 20th, 2006 11:56 AM
popup window sankar Pro VB 6 0 July 29th, 2003 01:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.