Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

signature for form

I am stuck.. Trying to find away to scribble, draw… however you would call it, into a textbox. For example, I have a form and at the bottom I want the user to agree and have him sign the app with his finger, like a signature. Maybe save it as a picture or something, Is this possible?
targeted to android

— asked July 13th 2010 by Matt Warren
  • android
  • form
  • scribble
  • sign
  • signature
0 Comments

2 Answers

  • Webview+canvas and then

    canvas.toDataURL("image/png");
    

    and some Titanium events to use this data ?

    — answered July 13th 2010 by Dan Tamas
    permalink
    1 Comment
    • Can you possibly point me in the correct direction for implementing the webview and canvas like your speaking of. I cannot locate example of this anywhere.

      — commented July 13th 2010 by Matt Warren
  • Take a look here

    http://mobilegeo.wordpress.com/2009/11/04/html5-canvas-for-mobile-apps/

    http://mab.edina.ac.uk/testimg/canvasopera.html

    You could try to integrate this as a local html file. Then you can use events to communicate with Titanium , like here

    http://developer.appcelerator.com/question/10671/webview-dom

    — answered July 14th 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.