Capture div using html2canvas
hi allin my home.aspx, iam displaying a map dinamically in a div
now i want to capture that div from home.aspx page and display that in child.aspx page div
iam using the following code in child.aspx, but nothing is displaying
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="js/html2canvas.js"></script>
<script type="text/javascript" src="js/jquery.plugin.html2canvas.js"></script>
<script type="text/javascript">
function Capture() {
//targetdiv is the home.aspx div
html2canvas($("#targetdiv"), {
//displaydiv is the div in chid.aspx
onrendered: function (displaydiv) {
document.body.appendChild(displaydiv);
},
width: 300,
height: 300
});
};
</script>