473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

false popup not allowed?

I have disable my firewall, virus software, google pop up allowed, ie6 popp
up checker disabled.
Is there an other one?

This script tels me :
"Pop-up windows are blocked. Please disable your popup blocker in order to
use the site.".

function POPRESULT(POP,NIS){
if (POP&&!NIS) {
xPopTested = true;
ShowMessage();//alert("All pop-up windows are supported.");
} else if (NIS) {
alert("Norton Internet Security has been detected. This may be disable
some pop-up windows. Please disable this feature for this site.");
} else {
alert("Pop-up windows are blocked. Please disable your popup blocker in
order to use the site.");
}
}
function POPTEST(){
try{
if(!xPopTested)
{
window.focus();
xWin=window.open("popuptest.htm","xWin","top=5000, left=5000,width=100,height=100");
setTimeout("test_xWin()",700);
}
else ShowMessage();
}catch(e){}
}
function test_xWin(){
is_ie=false;
is_mac=false;
PWOBJ=typeof(window.open);
if (document.body&&typeof(document.body.innerHTML)!=" undefined"){
PAGE=document.body.innerHTML.toLowerCase();
}
// DETECT NORTON INTERNET SECURITY
if
((window.SymWinOpen)||(window.SymRealWinOpen)||(PA GE.indexOf("symrealwinopen")!=-1)||((PWOBJ.indexOf("function")!=-1)&&(!is_mac&&is_ie)))
is_nis=true;
// DETECT POP-UP KILLERS
else if ((xWin==null)||(typeof(xWin)=="undefined")||(!POPW RITE))
xWindow=false;
// POP-UP SUCCESSFUL
else xWin.close();
POPRESULT(xWindow,is_nis);
}
var xPopTested=false;
var xWin=null;
var xWindow=true;
var x=null;
var PWOBJ=null;
var is_ie=false;
var is_mac=false;
var is_nis=false;
var PAGE="";
var POPWRITE=false;

Thanks for your attention
--
Jean Pierre Daviau
--
Easyphp1.8
Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
http://www.jeanpierredaviau.com
Jan 30 '06 #1
5 2214
I corrected some problems on this script. It seems to work.
Advises please.
----------------------

<html>
<head>
<title>check pop up</title>

<SCRIPT type="text/javascript" language="JavaScript">
<!--
var xPopTested=false;
var xWin=null;
var xWindow=true;
var x=null;
var PWOBJ=null;
var is_ie=false;
var is_mac=false;
var is_nis=false;
var PAGE="";
var POPWRITE=false;

function ShowMessage(){
alert("All pop-up windows are supported.");
}
function POPRESULT(POP,NIS){
if (POP &&! NIS) {
xPopTested = true;
ShowMessage();
} else if (NIS) {
alert("Norton Internet Security has been detected. This may be disable
some pop-up windows. Please disable this feature for this site.");
} else {
alert("Pop-up windows are blocked. Please disable your popup blocker in
order to use the site.");
}
}
function POPTEST(){
try{
if(!xPopTested)
{
window.focus();
xWin=window.open("popuptest.htm","xWin","top=5000, left=5000,width=100,height=100");
setTimeout("test_xWin(xWin)",700);
}
else ShowMessage();
}catch(e){}
}
function test_xWin(xWinin){
is_ie=false;
is_mac=false;
PWOBJ=typeof(window.open);
alert(xWinin.document.body.innerHTML);
if (document.body && typeof(document.body.innerHTML)!="undefined"){
PAGE=document.body.innerHTML.toLowerCase();
}
// DETECT NORTON INTERNET SECURITY
if
((window.SymWinOpen)||(window.SymRealWinOpen)||(PA GE.indexOf("symrealwinopen")!=-1)||((PWOBJ.indexOf("function")!=-1)&&
(!is_mac&&is_ie))) {
is_nis=true;

// DETECT POP-UP KILLERS
}else{
if ((xWin==null)||(typeof(xWin)=="undefined")) {//||(!POPWRITE)
xWindow=false;
}
// POP-UP SUCCESSFUL
else{
xWin.close();
}
}

POPRESULT(xWindow,is_nis);
}
//-->
</SCRIPT>
</head>

<body onLoad="POPTEST()">

</BODY>
</HTML>
---------------------------------
Jan 30 '06 #2
Jean Pierre Daviau said the following on 1/30/2006 5:34 PM:
I corrected some problems on this script. It seems to work.
Advises please.


<snip>

IE6 WinXP SP2 gives an error of permission denied.

Gives a false positive with the AOL Popup Blocker in AOL9.0 as well.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 30 '06 #3
The goal of this script is to test if the pop ups are allowed. I tried it
with IE6, Opera and Mozilla everything OK. For the others I dont have them.
IE6 WinXP SP2 gives an error of permission denied. ??It does not gives this?
alert("Pop-up windows are blocked. Please disable your popup blocker in
order to use the site.");

Gives a false positive with the AOL Popup Blocker in AOL9.0 as well.

Is this another one?

I added a window.opener.POPWRITE = true; in popuptest.htm
if ((xWin==null)||(typeof(xWin)=="undefined")||(!POPW RITE)
) {
xWindow=false;
}

Thanks
Jan 31 '06 #4
> "Jean Pierre Daviau" <On**@WasEno.ugh> wrote:
news:qY********************@wagner.videotron.net.. ..

You can try it there:

http://www.jeanpierredaviau.com/noname3.html


Ad Muncher seems to block it all, no alerts, no popups.

Only used for testing, never updated, default settings.

Ad Muncher Usage Statistics for v4.6 Build 10270
Adverts removed by Ad Muncher: 47,938
Approximate bandwidth saved: 374 MB
Counter started: May 25, 2005

--
BootNic Tuesday, January 31, 2006 5:12 PM

If we were not meant to make mistakes we would not have a Department of Corrections.
*Unknown**

Jan 31 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dan | last post by:
First, I'm sorry if this question has been asked too many times. I'm new to this news group. The question has to do with the use of popup windows in a web page. I have heard that popup windows...
1
by: Johny | last post by:
Hello I have used a text link popup on one of my pages and I was wondering would this kind of popup still get blocked by any popup stoppers. Thanks John
1
by: dejausenet | last post by:
I have firefox 1.0, running on winxp Firefox blocks popups fine, but sometimes, for selected occassions only, i would like to be able to have window popup; without enabling whole domains, as...
15
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me...
8
by: Orloff | last post by:
Hi, on most (all?) browsers, when you put the pointer on a <a href="..." title="popup text">this is a link</a> without clicking on the link, there is a popup caption with the "popup text". I...
9
by: Rathtap | last post by:
I want to popup a window from my codebehind. The reason is that during the postback the code needs to do some validations and to build the arguments that are passed in the url. How can I achieve...
6
by: Nick Stansbury | last post by:
Hi, I have a loop running on Page_PreRender that sets a number of controls to invisible based on a set of criteria. Before I do this however, I set all of the drop down lists to be visible with...
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
3
by: Yisehaq | last post by:
Hi guys I am trying to prepare few html pages which contain OLAP cubes on a CD. The problem I have is that the popup blocker blocks the OLAP modules from being shown. Therefore, I wanted to write...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.