Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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?

Reply With Quote
  #2 (permalink)  
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)
Reply With Quote
  #3 (permalink)  
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!

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:46 AM.


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