Soldato
I'm using jq-signature (https://github.com/bencentra/jq-signature) to give me a signature field on a form, but I'm struggling to interpret its output via ajax/php.
Gathering the field via var signature = $().jqSignature('getDataURL'); is fine, but if I try to straight output that with a .html(signature); for example, the output is "[object Object]".
I'm not 100% on what format the variable signature is in there, and how to convert it to a string (ideally). String would be ideal as the ajax can then pass the string (as opposed to an image) to a php mail script.
I've tried used atob() and btoa() with no success but I'm rubbish at js and it's difficult to troubleshoot.
TIA!
Gathering the field via var signature = $().jqSignature('getDataURL'); is fine, but if I try to straight output that with a .html(signature); for example, the output is "[object Object]".
I'm not 100% on what format the variable signature is in there, and how to convert it to a string (ideally). String would be ideal as the ajax can then pass the string (as opposed to an image) to a php mail script.
I've tried used atob() and btoa() with no success but I'm rubbish at js and it's difficult to troubleshoot.
TIA!