Hybrid View
-
13 Jan 2011 1:55 AM #1
simFla.ux.plugins.signaturePad
simFla.ux.plugins.signaturePad
Hey Guys
I needed a touch signature pad for my app so I made this plugin.
Example:
ClearPadCode:{ xtype: 'panel', id: 'signaturePanel', plugins: [new simFla.ux.plugins.signaturePad({width: 500, height: 100})] }
Get Image Data (base64 PNG)Code:Ext.getCmp('signaturePanel').plugins[0].reset()
Source: https://github.com/SimFla/SimFla-signaturePadCode:Ext.getCmp('signaturePanel').plugins[0].getSignatureAsImage('DATA')
-
13 Jan 2011 2:43 AM #2
That's really a good idea and nice implementation.
Good job SimonFlack!
Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
28 Jan 2011 4:37 AM #3
-
28 Jan 2011 11:03 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
1 Feb 2011 1:42 PM #5
It works great in chrome & ios... On Android I can draw... but when i do get image it will not display it and when you pass data it passes data: ,
-
2 Feb 2011 4:27 AM #6
What android device and versjon did you test on? Was it just the image in the demo that did not show or was the data string corrupt?
-
2 Feb 2011 6:30 AM #7
I have tried it on an HTC evo running 2.2 and a galaxy Tab also running 2.2 FROYO
I have tried it in the stock browser and Dolphin w the same results
on the demo it doesnt display anything when you press get image, the reset button works fine tho.
I couldnt figure out how to send the image as part of the form so i created a textfield and made it hidden and when you press sumit it pushes the signature to this hidden field then form.submit runs and when you un hide it it only says "data: ," below is my code that i use to fill that hidden field
like i said on ios on an ipad and chrome on the desktop it works fine but I didnt know how to really trouble shoot on the phone since all it was kicking back was data:,Code:Ext.getCmp('temp_sign').setValue(Ext.getCmp('signature').plugins[0].getSignatureAsImage('DATA'));
-
2 Feb 2011 1:30 PM #8
Unsure why everytime I try and reply here it says a moderator has to approve it.....
but anyway I tested it on An Evo & a Galaxy Tab, Both running 2.2 Froyo
the signature demo would not display the image below but it would clear the image
And since I could not figure out how to submit it as a form i have a hidden textfield and was submitting it that wayCode:Ext.getCmp('temp_sign').setValue(Ext.getCmp('signature').plugins[0].getSignatureAsImage('DATA'));
chrome and ios both send the data: base64.... Image properly android just sends data : ,
-
3 Feb 2011 5:08 AM #9
Weazil: I'll try to debug this and get back to you.
-
28 Mar 2011 4:34 PM #10
Scrolling
Scrolling
Simon, this is awesome, thanks for creating it and sharing.
Does anyone know how I could disable scrolling on a card ONLY when the signature is being drawn?
In my case, I need to scroll down to see the signature field, but if scrolling is enabled, the card scrolls around while I try to draw the signature.
Any help is greatly appreciated!
Similar Threads
-
Plugins vs extension
By pokerking400 in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 7 May 2008, 12:37 PM -
wRite a Plugins
By abys in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 3 Feb 2008, 12:15 PM -
[Solved]What are plugins?
By vendiddy in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 10 Jan 2008, 3:09 PM


Reply With Quote