Page 6 of 7

How to implement canvas based signature (using signature_pad javascript)?

Posted: Fri Apr 10, 2015 12:28 am
by Yurii Orishchuk

Hi Ali,

That's not correct selector to get canvas element.
You should use here correct one.

You can find details on the screen shot: http://prntscr.com/6rtz1w/direct

Also you can try this code instead of your if your canvas id is "signature_pad":

pre

var canvas = jQuery("#signature_pad")[0];

/pre

Regards


How to implement canvas based signature (using signature_pad javascript)?

Posted: Fri Apr 10, 2015 12:43 pm
by ali7378248

its not working, kindly any help


How to implement canvas based signature (using signature_pad javascript)?

Posted: Fri Apr 10, 2015 12:55 pm
by Evgene Karachevtsev

Hello Ali,

Could you please clarify, do you get any error?


How to implement canvas based signature (using signature_pad javascript)?

Posted: Fri Apr 10, 2015 12:59 pm
by ali7378248

could you please check my app i totaly lost


How to implement canvas based signature (using signature_pad javascript)?

Posted: Fri Apr 10, 2015 4:01 pm
by ali7378248

Dear Team

I manage to read the Base64string but when i am trying to open its empty

here i am invoking the canvas when the page show to let the user sign
Image

next when the user sign i add this code on the command update

Image

here i can see the string of the signature

Image

when i click on the link to see the signature its showing nothing

Image

kindly advice


How to implement canvas based signature (using signature_pad javascript)?

Posted: Sat Apr 11, 2015 7:07 pm
by ali7378248

no reply or support ?


How to implement canvas based signature (using signature_pad javascript)?

Posted: Sat Apr 11, 2015 7:22 pm
by Illya Stepanov

Hi Ali -

You're storing a Base64 string it won't show you anything, what you're trying to do next is not clear at this moment. Please explain what should be the final result.


How to implement canvas based signature (using signature_pad javascript)?

Posted: Sat Apr 11, 2015 7:49 pm
by ali7378248

i need to send that base64 to a database


How to implement canvas based signature (using signature_pad javascript)?

Posted: Sat Apr 11, 2015 8:20 pm
by ali7378248

should i change the local storge type ?


How to implement canvas based signature (using signature_pad javascript)?

Posted: Tue Apr 14, 2015 3:08 am
by Yurii Orishchuk

Hi Ali,

It seems you have incorrect JS line of code on save button click.

Details: http://prntscr.com/6thr1o/direct

Regards.