02-19-2020, 10:42 AM
I am integrating https://github.com/brinley/jSignature to make a signature in a html page.
It's to sign a work order by a customer much like parcel delivery services uses it.
Integrating and using the library works. Now I would like to store the signature data in the database. For this I need to send the signature data to the server. First idea was to use
The url gets too long this way. Long question short: How do I get the signature data to the server? Can I POST the data? Is there some example for this?
PS I don't mean to get the data in a compressed format like image/jSignature;base30, another export format.
It's to sign a work order by a customer much like parcel delivery services uses it.
Integrating and using the library works. Now I would like to store the signature data in the database. For this I need to send the signature data to the server. First idea was to use
Code:
function sendSignature() {
var $sigdiv = $('#signature');
var signatureData = $sigdiv.jSignature("getData");
ajaxCall("StoreSignature", "&signature="+signatureData, false);
}
The url gets too long this way. Long question short: How do I get the signature data to the server? Can I POST the data? Is there some example for this?
PS I don't mean to get the data in a compressed format like image/jSignature;base30, another export format.