In head
//Use this javascript
<script type="text/javascript">
function hideLoading()
{
document.getElementById('divLoading').style.display = "none";
document.getElementById('divFrameHolder').style.display = "block";
document.getElementById('div4').style.display = "none";
document.getElementById('div2').style.display = "block";
document.getElementById('div5').style.display = "none";
document.getElementById('div3').style.display = "block";
}
</script>
In form
// call javascript function in iframe tag
<table style="width:830px;height:480px;font-family:Arial;" bgcolor="white" align="center">
<tr style="height:8px">
<td align="center" style="font-weight:bold;font-size:12px;">
<asp:Label ID="chart4" runat="server" ></asp:Label>
</td>
<td align="center" style="font-weight:bold;font-size:12px;">
<asp:Label ID="chart5" runat="server" ></asp:Label>
</td>
</tr>
<tr style="height:200px">
<td colspan="2" valign="top" align="center">
<div id="divLoading" style="align:center;">
<img src="../images/loading45.gif" alt="" width="150px" height="150px" />
</div>
<div id="divFrameHolder" style="display:none">
<iframe src="smartmisframeaging.aspx" onload="hideLoading()" frameborder="0" scrolling="no" width="100%" height="230"></iframe>
</div>
</td>
</tr>
<tr style="height: 8px">
<td align="center" style="font-weight:bold;font-size:12px;">
<asp:Label ID="chrt1" runat="server"></asp:Label>
</td>
<td align="left" style="font-weight:bold;font-size:12px;padding-left:40px;">
<asp:Label ID="chrt2" runat="server"></asp:Label>
<asp:Label ID="chrt3" runat="server"></asp:Label>
</td>
<tr align="left">
<td style="width:215px;padding-left:0px;" valign="top" align="center">
<div id="div4" style="align:center;">
<img src="../images/loading45.gif" alt="" width="150px" height="150px" />
</div>
<div id="div2" style="display:none">
<iframe id="preauth" src="smartmisframepreauth.aspx" onload="hideLoading()" frameborder="0" scrolling="no" width="100%" height="300px"></iframe>
</div>
</td>
<td valign="top" align="center">
<div id="div5" style="align:center;">
<img src="../images/loading45.gif" alt="" width="150px" height="150px" />
</div>
<div id="div3" style="display:none">
<iframe src="smartMISframehrs.aspx" onload="hideLoading()" frameborder="0" scrolling="no" width="100%" height="300px" marginwidth="0"></iframe>
</div>
</td>
</tr>
</table>
No comments:
Post a Comment