The jquery dialog
is not popping up above all elements.First thing is I have pre-built framework which contains lot of sections. In one of the sections, I coded separate jsp page to display some graph and linked that jsp page in that section. On a button click in that jsp page, I am displaying one dialog. Below is the code snippet.
<body>
<div id="container" style="min-width: 320px; height: 370px; margin: 0 auto"></div>
<div id="hugedialog" title="dialog"></div>
<script type="text/javascript">
$(function() {
$("#hugedialog").dialog({
autoOpen : false,
modal : true,
show : "blind",
hide : "blind",
width: 900,
height: 700
});
});
function popupdlg() {
$("#hugedialog").dialog("open");
}
</script>
</body>
So, I am calling the above function popupdlg when button is clicked. But the thing is if I open that page independently, it pops up correctly. When I embed this in pre-built section and click the button, the pop up displays only in that section rather than popping up over all the elements.
I tried below things, but no luck
1).ui-dialog { z-index: 1000 !important ;}
2) Tried movetotop
but still didn't work
Have been trying every possible answer, but couldn't succeed. Can someone please help how to overcome this issue such that dialog should display top of all the elements in that page? One idea comes to my mind is like I have to bind this div to top element in the page. So, by any chance can I get top reference and attach the dialog div to it from the current jsp page itself?