views:

1056

answers:

4
A: 

I had reproduced problem with this code:

<script type="text/javascript" >
    document.showInnerPopup = function(){
        alert("Inner popup");
    }

    function btnOnClick(){
        var popup = document.parentWindow.createPopup();
        popup.document.body.innerHTML = "<div style=\"border: 1px solid red;width: 100%; height:100%\" id=\"popupDiv\" onclick=\"javascript:document.showInnerPopup(this,event)\">Click to show another popup</div>";
        popup.document.showInnerPopup = function(obj, evt) {
            var doc = evt.srcElement.ownerDocument;

            var popup = doc.parentWindow.createPopup();
            popup.document.body.innerHTML = "<div style=\"border: 1px solid green;width: 100%; height:100%\">Nested popup</div>"
            popup.show(10, -20, 150, 150, doc.body);
        }

        popup.show(10, -20, 100, 100, document.getElementById("btn"));
        document.btn = document.getElementById("btn");
        document.popup = popup;
    }
</script>
<input type="button" value="Show Popup" onclick="btnOnClick()" id="btn" />

This behavior is because of IE setting “Allow script-initiated windows without size or position constraints” which by-default has value “Disable” even for trusted zone

horseman
A: 

Perhaps the IE dev team have decided to become good and make life hard on those who want to use popups :)

Robert Grant
IE dev team decided to make life hard on those who want to build rich interfaces.FYI: popups are used not only for injection and attacks :-)
horseman
Haha yeah - all those rich UIs that require popups to work. Better let the Google Maps/Gmail dev teams know so they can horribly break the UX in pursuit of this new definition of "rich" :p
Robert Grant
A: 

I get a sort of blinking whenever I use Google in IE8 and place the mouse over the search entry field which prevents me from typing until I move the mouse away. But my cause was the Tweakui's 'activation follows mouse' X-Mouse feature. Yet with that feature off and hovering over the search there is still a 'Google Search' that blinks on and off.

This is why I avoid IE. It's still so buggy. I don't care if tweakui is unsupported by MS. Why doesn't MS just rewrite IE altogether?

A: 

Thanks horseman. Your suggestion helped to resovle the issue we have with our system.

Ravindra