Skip to content
Advertisement

Capturing signature on a webpage (via tablet screen)

I am trying to write a short code to capture the signature via a tablet screen on a webpage. However, I can’t get the area up that captures that signature.

The code I am using, which I have borrowed from other places that do work is:

JavaScript

I suspect it has something to do with the links to jquery, unless somebody can see something else glaringly obvious. (I am quite new to this)

Is anyone able to put me in the right direction?

Thanks.

Advertisement

Answer

Try this …

JavaScript

There’s a couple of things. I’ve changed the googleapi call to https instead of http. This helps with browsers that are tetchy with mixed content.

The code for the signature is now also at the bottom, so this should make sure the #sig div is there before the code that attaches itself to it is. This is also helped by the document ready function.

Ignore my ../js/ for the signatures. That’s just where I put it. See my comment above about viewing page source to see if the file is actually available.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement