Pop Up Windows Blocked by XP service pack 2

This is a discussion on "Pop Up Windows Blocked by XP service pack 2" within the Web Page Design section. This forum, and the thread "Pop Up Windows Blocked by XP service pack 2 are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 21st, 2005, 14:10
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Pop Up Windows Blocked by XP service pack 2


Have just designed a simple web site using dreamweaver where most of the windows use the open new window command. http://www.eandp.co.uk/
I have now found out that Service Pack 2 in XP would disable this function. I was given some code that would get around this problem but browsers have changed since and it no longer works properly. I need to control the size and position of the new window.
If I use the command "popup = window.new" then it generates a new window but it ignores the variables (window size etc) and if I use "popup = window.open" then the variables work but it doesnt appear in a new window every time you click the link, only the 1st time.
Help, yes please!!!
My code is:

Code: Select all
<html>
<head>
<title>test page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>


[img]images_home/ep_about_03.gif[/img] 
</p>


[img]images_home/ep_about_03.gif[/img]</p>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 21st, 2005, 17:41
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ideally, you shouldn't be using pop-ups at all. I know that isn't what you want to hear though.

New windows should open in IE and other browsers, but pop-ups are a more complicated issue.

Maybe someone else can shed some light on this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 21st, 2005, 21:34
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
This may help

Hello, one of the site's I'm building (currently in development) has this feature working, and working perfectly in IE:

http://development.gmcourtreporters.com/hotels.html

Click on that link, then click on any of the "Directions from hotel" links.

Here is the code:

Before the head tag closes, I have this:
Code: Select all
<script type="text/javascript">
function popUp(url) {
  windowName = window.open(url, 'Directions', 'toolbar=0, scrollbars=1, location=1, statusbar=1, menubar=1, resizable=1, width=552, height=450');
  windowName.focus();
}
</script>
And this code is in the link itself:
Code: Select all
Directions from Hotel
simply change the size parameters in the javascript code, then change the directory/.html file code in the <a> tag.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 22nd, 2005, 08:55
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
8) Thanks for your help. I dont think I explained myself very well. Normally I use code like this for Open New Windows which works fine in most browsers including IE6.

Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onLoad="MM_preloadImages('images_home/ep_gallery_02.gif','images_home/ep_gallery_03.gif')">
[img]images_home/ep_gallery_03.gif[/img] 
</body>
</html>
This line has the variables in it like page width, hieght and postioning.
Code: Select all
[img]images_home/ep_gallery_03.gif[/img]
Microsofts service pack 2 for XP blocks any javascript regarding pop ups including Open New Window commands. Therefore I was trying to use a line like this which doesnt get blocked because the link is not pointing to javascipt.

Code: Select all
<a href="gallery/index.htm" target="_blank" onClick="popup = window.open('gallery/index.htm', 'PopupPage', 'top=0,left=0,height=500, width=500'); return false" onMouseOver="MM_swapImage('gallery3','','images_home/ep_gallery_02.gif',1)" onMouseOut="MM_swapImage('gallery3','','images_home/ep_gallery_03.gif',1)"> 
  [img]images_home/ep_gallery_03.gif[/img]</a>
But if I use the command "popup = window.open" as above, then the variables work but it doesnt appear in a new window every time you click the link, only the 1st time. If I use "popup = window.new" then it generates a new window but it ignores the variables (window size etc)

I need to control widow size and positioning whilst not getting blocked by IE6 Service Pack 2. This problem will effect lots of sites as more users download this pack.

Any help YES PLEASE!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 22nd, 2005, 10:02
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Sirkent
Ideally, you shouldn't be using pop-ups at all. I know that isn't what you want to hear though.

New windows should open in IE and other browsers, but pop-ups are a more complicated issue.

Maybe someone else can shed some light on this?
Thanks Sirkent. Have explained my problem in detail now. Hoping for some answers. I know New Windows arent ideal but its what the client wants. I think sometimes they are useful when linking from a thumbnail to a larger image like on this page:
http://www.glanceimage.co.uk/imagebank/index.htm
I did a fine art degree in Canterbury. Havent been back for ages.
Cheers Cyberseed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 22nd, 2005, 10:04
Up'n'Coming Member
Join Date: Jul 2005
Location: uk
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: This may help

Quote:
Originally Posted by herkalees
Hello, one of the site's I'm building (currently in development) has this feature working, and working perfectly in IE:

http://development.gmcourtreporters.com/hotels.html

Click on that link, then click on any of the "Directions from hotel" links.

Here is the code:

Before the head tag closes, I have this:
Code: Select all
<script type="text/javascript">
function popUp(url) {
  windowName = window.open(url, 'Directions', 'toolbar=0, scrollbars=1, location=1, statusbar=1, menubar=1, resizable=1, width=552, height=450');
  windowName.focus();
}
</script>
And this code is in the link itself:
Code: Select all
Directions from Hotel
simply change the size parameters in the javascript code, then change the directory/.html file code in the <a> tag.
Thanks but your code gets blocked with IE when using Service Pack 2 for XP. I have posted a new thread about it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 22nd, 2005, 20:53
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
It doesn't get blocked for me... opens no problem in my IE (I have SP2).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 22nd, 2005, 22:57
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
SP2 does not in fact block new windows opened with javascript if it's the result of user interaction, like clicking on a link. It's only windows that open automatically, like during page loading or unloading that get blocked.

If yours are getting blocked I'd guess you have another blocker running like the Google toolbar, etc.

See the second to last post on this topic: http://www.webforumz.com/viewtopic.php?t=1670
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 23rd, 2005, 02:23
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: This may help

Quote:
Originally Posted by cyberseed
Thanks but your code gets blocked with IE when using Service Pack 2 for XP. I have posted a new thread about it.
Definitely shouldn't. As someone else mentioned, I'd check your computer for third party popup blocking software.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
pop, windows, blocked, service, pack

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP service pack 2 - anyone had any problems or success ? Gerry Webforumz Cafe 31 May 11th, 2008 23:01
Windows XP Service Pack 3 minutedesigns Webforumz Cafe 4 Jan 15th, 2008 11:34
Free icons pack freeiconsweb Graphics and 3D 4 Mar 22nd, 2007 23:21
Pop up windows that dont get blocked cyberseed Web Page Design 5 May 23rd, 2006 16:31


All times are GMT. The time now is 13:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42