From my web page i have a print icon. On Clicking the icon i open a pop up page "Print_content.aspx"
I pass the querystring to the popup page ?print = URL of parent page and name of the DIV to fetch in parent page "#subcontent" and will load the content inside div subcontent (parent page) to div siteloader which is in my popup page.
This works perfectly with Mozilla and Chrome. But not with IE
Jquery in Popup page :
var value = window.location.search;
$(document).ready(function () {
$("#siteloader").load(value.replace("?print=", "") + " #subcontent");
});
</script>
Whole markup of Print_content.aspx
<script type="text/javascript" src="../Scripts/jquery-1.7.2.min.js"></script>
<link href="../print.css" rel="stylesheet" type="text/css" />
<title></title>
</head>
<body>
<table>
<tr>
<td>
<div id="logo">
</div>
</td>
</tr>
<tr>
<td align="center">
<a runat="server" id="img_Print" onclick="window.print()">
<img id="Img1" runat="server" src="/image/btn_print.gif" /></a>
</td>
</tr>
<tr>
<td align="left">
<div id="siteloader">
</div>
</td>
</tr>
</table>
<script type="text/javascript">
var value = window.location.search;
$(document).ready(function () {
$("#siteloader").load(value.replace("?print=", "") + " #subcontent");
});
</script>
<div id="div-overlay" style="position: absolute; top:130px; height: 100%; width: 100%; z-index: 200; opacity: 0.0;background-color:Gray;"> </div>
</body>
</html>