Hi,
I have a parent page where
<frameset title="ParentFrame" framespacing="0" rows="<%=Height%>,*">
<frame title="Frame1" name="Frame1" scrolling="no" src="frame1.aspx" noresize/>
<frame title="Frame2" name="Frame2" scrolling="no" src="frame2.aspx" noresize/>
</frameset>
</frameset>
From Frame1.aspx, I want to show a modal transparent div on top of all the frames for a short time.
To do that I add a modal div to the parent page, and call the parent js function to display the modal div, but it can not identify div in the page in the first place.
Following is the code, ignore the syntax errors please.
<script language="javascript" type="text/javascript">
function showmodaldiv()
{
document.getElementById('Modaldiv').style.display='block'
}
</script>
<frameset title="ParentFrame" framespacing="0" rows="<%=Height%>,*">
<frame title="Frame1" name="Frame1" scrolling="no" src="frame1.aspx" noresize/>
<frame title="Frame2" name="Frame2" scrolling="no" src="frame2.aspx" noresize/>
</frameset>
</frameset>
<div id="Modaldiv" class="Modaldiv">
</div>
</html>
I could show modal div from all frames but one of them has scrolls which is not covered by the modal div from the individual frame.
So I am going for this approach where I want to show modal div from parent page itself.
How to make this work?
Is there any other alternative to show modal div on a parent page (with frameset)