Hehe... Looking at it now actually... Does not look like Ext.AbstractComponent contains code to "init" the plugings like you find in Ext JS 4 version.
if (me.plugins) { me.plugins = [].concat(me.plugins); for (i = 0, len = me.plugins.length; i < len; i++) { me.plugins[i] = me.initPlugin(me.plugins[i]); } }
Simon Flack CEO and UX Designer
WhiteFox AS, Norway
hello, I'm using the signature pad from simon (thanks for this!), but have run into the same issue as was noted a page or two back on android, namely that we don't get any image data in anything below android 3. On my android 3.1 tablet i get the image data, however, on my SGS2 (android 2.3.6) i dont' get any data. It was mentioned that attempting to get a BMP instead of a PNG might work but like the others I too get the [object HTMLImageElement] string when I attempt to get the signature value. Any idea as to how we can get something working on pre Android 3.x devices? Have those that ran into the same issue been able to find a solution?
[EDIT] I see now that its not possible pre android 3. however, there are some workarounds as noted by weazil at the link he provided (http://code.google.com/p/android/issues/detail?id=7901) .... if any have used the workarounds it would be nice to hear your impressions/experiences.
From what I can tell you shouldn't be getting the desired result for android 2.x devices. I have a Galaxy S2 (2.3.6) and I literally get this short string as the output: "data:". This is consistent with the reported behavior.
On an Acer a500 (3.2) i get the full data string.
The issue is that toDataURL on android 2.x just isn't fully implemented, thus signature pad isn't able to do its magic. I've no idea why you can get it to work on your two devices - i have to think that it is in fact not working. No error will be thrown, you *can* draw/write and you do get "something" returned... just not the image data.... I'm sure you have, but in case not, have you taken a look?
Hi Simon, really thanks for this awesome plugin!!
I've a question: how can I disable/enable the signature panel? In order to allow user to edit or not it.