![]() ![]() Please verify that the SignatureHolder input has a sufficiently large maximum length, otherwise the base64 of the signature may be truncated, which will cause invalid signature data to be collected. Once the form is submitted, you can obtain the data on the Screen Action that is triggered by the SignatureSender button. $('#" + SignatureSender + "').click() // submit the form $('#" + SignatureHolder + "').val(datapair) // fill in the data Then modify the script you've posted to, right before the closing tag, do something like ![]() Use ctx.clearRect (0, 0, canvas.width, canvas.height) instead. Setting canvas.width canvas.width is a hack and doesn't work in all browsers. ![]() But for the clear signature, you need to add a handler for the click on the button to actually invoke the clear function. On both widgets, set the Extended Property style to "display:none". Signature Pad is a JavaScript library for drawing smooth signatures. DOCTYPE html>In order to do that, create the input in the page and give it a Name such as SignatureHolder and create a button for triggering the submission and call it SignatureSender. You can then submit the input to the server. If you want to obtain the signature, you can have a hidden input in your page and use the script you posted to place the contents of datapair (which contains the base64 of the SVG code of the image) into that input. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |