Search code examples
javascriptwindowspluginsfirebreath

Pop up on windowed plugin



I had created windowed plugin (for window OS) using one of the best cross browser friendly plugin library "Firebreath".Now I want to display the HTML popup on the window but popup goes behind the plugin window. I am aware that plugin window is always above all the HTML element so the above situation is obvious, Is there any solution to adjust the Z-order of the plugin window.

1) Window less plugin is not a option for me.
2) I don't want to wrap up my popup inside the iframe.
3) I had try SetWindowPos API on window handle but no luck.
4) I had set the z-index of my html popup to the highest but still no luck.

Thanks


Solution

  • You cannot display any HTML above a windowed plugin. Period. There are no exceptions to that rule.

    Your options are to switch to windowless or to hide the plugin object (by setting width and height to 1px) when you're displaying the popup.

    Note: Do not hide the plugin using visibility: hidden or display: none, as this will cause it to lose its window on some browsers. width/height 0 can do the same thing sometimes, so I recommend 1x1