willowsystems / jSignature

jQuery plugin - draw signature in browser.
720 stars 266 forks source link

How can I load sig data out of a database and display in on the HTML page #33

Open chadcrowell opened 11 years ago

chadcrowell commented 11 years ago

Sorry, your example doesn't seem to get me there.

I have this working - the signature was previously saved using:

$('.sig-save').click(function(e) { e.preventDefault(); datapair = $sigdiv.jSignature("getData","base30"); $('#member_privacy_signature').val(datapair); $('#zoo_visitor_form').submit(); });

And the below is what is loaded on the page after the save. So, the base30 signature data is loaded into hidden form field "member_privasy_signature":

I just want to grab that value from the hidden for field and have the signature rendered back into #signature using JS or JQ.