Hello,
I have forked your sample
here[
^]. After looking at your code what I realized that you were creating image representation of first table only. Also the window.open syntax you were using is not the correct syntax. Also remember that you can not pass very large data over URL. Here is the modified javascript.
$("#btnSave").click(
function () {
var hWin,img;
html = "";
hWin = window.open("", "");
for (i = 1; i <= 10; i++) {
html2canvas($('.' + i), {
onrendered: function (canvas) {
var img, data;
data = canvas.toDataURL("image/png");
console.log(data);
img = hWin.document.createElement('IMG');
img.src = data;
hWin.document.body.appendChild(img);
}
});
}
}
);
Regards,