dialog-polyfill
dialog-polyfill copied to clipboard
any possibility to display over frameset?
I assume, it's not possible but still, is it possible to display a dialog over frameset structure like so?
<html>
<head>
<title><%=g_title%></title>
<% import_dialog_polyfill 0 %>
</head>
<frameset framespacing="1" border="0" frameborder="0" rows="56,*">
<frame scrolling="no" noresize src="banner.asp">
<frameset cols="240,*" frameborder="1">
<frame scrolling="auto" src="entry_nav.asp">
<!-- another ugly frame stacks go here -->
</frameset>
</frameset>
<dialog>
Dialog content
</dialog>
<script>
// initialize and show the dialog
</script>
</html>
This way, the dialog is initialized and present in DOM but is not visible.
Now that's a HTML element I've not seen in a long time, <frameset>
. Is there a problem whereby the frameset is always visually in front of the dialog?
If you need a frameset, the only way you could put ANYTHING over the whole frameset is to put the frameset inside of its own iframe.
Then you can put the dialog outside of the iframe. And you could initialize the dialog within a frame by using window.top
.
However, I'd recommend migrating to Ajax instead.