Capture Signature using HTML5 and iPad

后端 未结 6 1832
眼角桃花
眼角桃花 2020-12-07 06:49

Anyone know how this can be done? Would you use a canvas object, svg, jQuery, etc?

相关标签:
6条回答
  • 2020-12-07 07:14

    Here is a quickly hacked up version of this using SVG I just did. Works well for me on my iPhone. Also works in a desktop browser using normal mouse events.

    0 讨论(0)
  • 2020-12-07 07:16

    The options already listed are very good, however here a few more on this topic that I've researched and came across.

    1) http://perfectionkills.com/exploring-canvas-drawing-techniques/
    2) http://mcc.id.au/2010/signature.html
    3) https://zipso.net/a-simple-touchscreen-sketchpad-using-javascript-and-html5/

    And as always you may want to save the canvas to image:
    http://www.html5canvastutorials.com/advanced/html5-canvas-save-drawing-as-an-image/

    good luck and happy signing

    0 讨论(0)
  • 2020-12-07 07:18

    Perhaps the best two browser techs for this are Canvas, with Flash as a back up.

    We tried VML on IE as backup for Canvas, but it was much slower than Flash. SVG was slower then all the rest.

    With jSignature ( http://willowsystems.github.com/jSignature/ ) we used Canvas as primary, with fallback to Flash-based Canvas emulator (FlashCanvas) for IE8 and less. Id' say worked very well for us.

    0 讨论(0)
  • 2020-12-07 07:30

    Another OpenSource signature field is https://github.com/applicius/jquery.signfield/ , registered jQuery plugin using Sketch.js .

    0 讨论(0)
  • 2020-12-07 07:31

    A canvas element with some JavaScript would work great.

    In fact, Signature Pad (a jQuery plugin) already has this implemented.

    0 讨论(0)
  • 2020-12-07 07:32

    Here's another canvas based version with variable width (based on drawing velocity) curves: demo at http://szimek.github.io/signature_pad and code at https://github.com/szimek/signature_pad.

    signature sample

    0 讨论(0)
提交回复
热议问题