I am working in one project in which i have to generate Image from Division. This division is Dynamic container. Admin is adding components to that div.
I am fine to create div width of 300 X 300, see image1
Also on click of Saving this template to database before form submit i am generating image in following way.
var createContainer = document.querySelector("#container");
html2canvas(createContainer, {
onrendered: function (canvas) {
console.log(canvas);
$("#templateImage").val(canvas.toDataURL());
console.log($("#templateImage").val());
},
width: 300,
height: 300
});
I am generating canvas of 300 X 300 using html2canvas.js
I am getting this base64 value in console but unable to get it in tax box using jqyery. the base64 value is link to file which contains base64 value
Probblem-1 I am not able to get value in textbox and to next page as well
Problem-2 I am not able to get this value in next page by POST method