simeonC Posted July 12, 2013 Share Posted July 12, 2013 I have some JSON data that I retrieved from my database which is suppose to represent customers signatures. However I can now capture it but I cannot display it back on to the canvas field because i do not know how.. Is there anyone out there that know how to accomplish this task in the most simpliest way.. I am currently reading document from -- since it is his program http://thomasjbradley.ca/lab/signature-pad/#options-ref but I cannot seem to get it done Any help would be appreciated Thank you. Quote Link to comment Share on other sites More sharing options...
kicken Posted July 13, 2013 Share Posted July 13, 2013 There is an example right there on the page you linked: $('.sigPad').signaturePad({displayOnly:true}).regenerate(sig); Where sig is the JSON data from your database. Have PHP echo out your JSON to a sig variable and then use the line above. var sig = <?php echo json_encode($jsonFromDb); ?>; Quote Link to comment Share on other sites More sharing options...
simeonC Posted July 13, 2013 Author Share Posted July 13, 2013 Well I would love to mark this as answer however I did try all of these and the signature has yet to be displayed.. If anyone can experiment with this and see if you can get it to show let me know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.