var initalurl, newurl;
function oncreate(e){ // signature create event
setTimeout(function(){ // set timeout function to get the delay for loading the image in the canvas
var obj = $("#apisignature").ejSignature("instance");
initalurl = obj._canvas[0].toDataURL(); // take the dataurl and save to a variable
}, 1000);
}
function onchange(e){ // signature change event
newurl = e.lastImage // take the last drawn image url inside the signature using the lastImage argument
initalurl === newurl ? alert("true") : alert("false") // compare to get the difference
} |
Hi Pio Luca,We have update our response for your last query in an incident under your Direct Trac account. Please follow up the incident for more details.Please click here to login to your Direct Trac login with the below link.Regards,Deepa L.