Signature Signature Primer Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

Signature Signature Primer Tutorial

Signature Signature Primer Tutorial

Todayโ€™s new web application is a Signature Signature. Our aim with this web application is โ€ฆ

  • capture a personโ€™s signature (via an HTML(5) Canvas element) โ€ฆ and be โ€ฆ
  • collecting that Signatureโ€™s โ€œSignatureโ€ in terms of a pen plotter pen up/pen down instructional โ€œdefinitionโ€ (in some way shape or form) โ€ฆ if the user is satisfied to โ€ฆ
  • save the Signatureโ€™s โ€œSignatureโ€ in a HTTP Cookie that can be remembered by this and other web applications, perhaps โ€ฆ weโ€™ll see on this one

If youโ€™re a programmer reading above, am sure you are immediately curious about โ€ฆ

  • cross-platform and cross-browser issues within the touch/mouse worlds โ€ฆ you are not alone โ€ฆ
  • can a complicated signature be saved within the storage restrictions of HTTP Cookies? โ€ฆ the room is getting more crowded โ€ฆ
  • cropping and initial canvas size concepts โ€ฆ take a ticket โ€ฆ
  • how do you handle scaling and the implications to authenticity (of scaling) if you reuse this Signatureโ€™s โ€œSignatureโ€ in another context โ€ฆ think thereโ€™s room there squeezed up against the fridge
  • astronauts in zero gravity? โ€ฆ alright already!

โ€ฆ but, nevertheless, letโ€™s just creep up on the project, and see how we go, here, today, on a first draft.

Concentrating in on the HTML(5) Canvas element thoughts, what events will be of interest?

  • mouse move event โ€œonmousemoveโ€ (and its equivalent touch event(s)) โ€ฆ for sure, and others, perhaps like โ€ฆ
  • mouse up โ€œonmouseupโ€ (like pen up) (and its equivalent touch event(s))
  • mouse down โ€œonmousedownโ€ (like pen down) (and its equivalent touch event(s))

This โ€œeventsโ€ concern we have, above, had a similar scenario to when we presented Canvas Email Attachment Scribble Tutorial, and so, with that in mind, we are going to have a web application that โ€ฆ

  1. has a supervisory HTML and Javascript signature_signatureโšซhtml โ€ฆ calling on โ€ฆ
  2. external Javascript has a supervisory HTML and Javascript signature_signatureโšซjs containing the Canvas element mouse/touch event logics

Here is a liveโœ‚run link, and to see this in action, take a skeg at โ€ฆ

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Tutorials and tagged , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *