Hi,
It turns out that the unwanted interaction between killing pop-up windows and JavaScripts embedded in frames is causing this problem. Basically, it is a scope problem. One frame calls a function within another frame, and that frame knows nothing about the right "PrxLC" variable. My idea is to create only a single (global) PrxLC variable when dealing with frames to avoid this. Here is my suggestion for improving the "Kill pop-up windows" filter. Please let me know if this works!
<!--//--><script>
if (top.length<=1)
{
var PrxLC=new Date(0);
}
else
{
alert("using frames in " + document.URL);
top.document.PrxLC=new Date(0);
alert(top.length);
}
var PrxModAtr=0;
var PrxInst; if(!PrxInst++) PrxRealOpen=window.open;
function PrxOMUp()
{
if (top.length<=1)
{
PrxLC=new Date()
}
else
{
top.document.PrxLC=new Date()
}
}
function PrxNW() { return(this.window); }
function PrxOpen(url,nam,atr)
{
var PrxLCloc;
if (top.length<=1)
{
PrxLCloc = PrxLC;
}
else
{
PrxLCloc = top.document.PrxLC;
};
if(PrxLCloc)
{
var cdt=new Date();
cdt.setTime(cdt.getTime()-PrxLCloc.getTime());
if(cdt.getSeconds()<9)
{
return(PrxRealOpen(url,nam,PrxWOA(atr)));
}
}
return(new PrxNW());
}
function PrxWOA(atr){
var xatr="location=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes";
if(!PrxModAtr) return(atr);
if(atr){
var hm;
hm=atr.match(/height=[0-9]+/i);
if(hm) xatr+="," + hm;
hm=atr.match(/width=[0-9]+/i);
if(hm) xatr+="," + hm;
}
return(xatr);
}
window.open=PrxOpen;
</script>
Greets,
Lennert.