cadi_threeships

Can anyone tell me if the following behavior is by design or an IE7RC1 bug:

If I call window.createPopup() where 'window' is in itself a popup window,
the position of the second popup is limited - it appears that it should at
least overlap 50% with the first popup.

I use this mechanism in IE6 to create context menu rollover.. Any insight is much appreciated..
Casper

-- to try this out, run this HTML in IE7RC1, click on tag, click on green --

<HTML>
<HEAD>
<TITLE>Nested popup windows</TITLE>
<script>
var firstPopupDiv = null;
function tag_onclick()
{
var popup = window.createPopup();
var div = popup.document.createElement("DIV");
div.style.backgroundColor = "green";
div.style.width = 200;
div.style.height = 200;
div.onclick = div_onclick;
popup.document.body.appendChild(div);

firstPopupDiv = div;
popup.show(30, 30, 200, 200, maindiv);
}
function div_onclick()
{
var popup =
firstPopupDiv.ownerDocument.parentWindow.createPopup();
popup.document.body.style.backgroundColor = "red";

popup.show(230, 30, 200, 200, firstPopupDiv); // Not
shown at 230!
}
</script>
</HEAD>
<BODY>
<div id="maindiv" onclick="tag_onclick()">Click me</div>
</BODY>
</HTML>



Re: Internet Explorer Web Development IE7 RC1 problem positioning pop-ups in pop-ups

darrellc

We are having the same problem. We wrote a menu system that uses popups. Now with IE7 when you try to open a second popup to the right of the first one you cant position it any farther than half way past the right edge of the first one. Changing the "x" value in the show method has no effect. There must be others out there having the same issues. Any help would be greatly appreciated.

Thanks





Re: Internet Explorer Web Development IE7 RC1 problem positioning pop-ups in pop-ups

TechieJon

Any updates





Re: Internet Explorer Web Development IE7 RC1 problem positioning pop-ups in pop-ups

cadi_threeships

Hi, I found out later that this is, indeed, a feature..

In the IE options, security settings, under 'miscellaneous', there is an option "Allow script-initiated windows without size or position constraints". If disabled, your pop-ups are constrained.

If you put your site in the trusted or intranet zone, things should work as expected.

Casper





Re: Internet Explorer Web Development IE7 RC1 problem positioning pop-ups in pop-ups

TechieJon

Thanks Casper