Feeling a bit lost here. I've been reassured that the jquery code below is solid, but for some reason html2canvas just won't cooperate. When I click the button, nothing happens at all. Other methods with the button seem to work fine. Can anyone shed some light on what might be causing this issue?
This is the jquery code I'm using:
$(document).ready(function () {
$('#Print_Button').click(function () {
html2canvas($('#form1'),{
onrendered: function(canvas) {
cvs = canvas.toDataURL('image/png');
window.open(cvs)
}
});
});
});
And here's the HTML snippet:
<table id="table_1"">
<tr>
<td class="auto-style12">MCN Ref No.</td>
<td>
<asp:TextBox ID="TextBox1" ReadOnly="True" runat="server" Width="116px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="auto-style12">Date:</td>
<td>
<asp:TextBox ID="TextBox4" ReadOnly="True" runat="server" Width="116px"></asp:TextBox>
</td>
</tr>
... (HTML content continues)