Hi Pranav, Thank you very much for this information. I will add support to "data-mask" for HTML5. In the mean time "alt" will continue to be supported in order to support old HTML/XHTML versions.
BRs, Green On Mon, Mar 22, 2010 at 2:16 AM, Pranav <[email protected]> wrote: > Hi Green, > > Not sure if I'm too late with this suggestion, but have you considered > using a data attribute e.g. data-mask for specifying the mask? > http://www.javascriptkit.com/dhtmltutors/customattributes.shtml > > You might mess up screen readers by using the alt attribute. > > Cheers > > On Mar 21, 5:24 am, green <[email protected]> wrote: > > hi Stefan, > > > > This is the result of removing "prototype" from "Event.prototype.key". > > Please DO NOT DO it if you want to keep the tool working. I have tried > > T.J.'s suggestion about the IE problem, it's already gone. However there > is > > another problem in IE8: I tried to clone the form input and found i > cannot > > move the focus to the cloned one. This problem can't be reproduced in FF > and > > Chrome. Probably it will not be your problem if you use a different way > to > > copy input. > > > > Take a look at the new sample.html file in the github to see how I tried > to > > clone an input and re-mask it. > > > > Thx, > > Green > > > > On Sat, Mar 20, 2010 at 6:20 AM, lars_stecken <[email protected]> wrote: > > > Ok, I figured that now I am getting errors in FF on buttons which are > > > caught with the default case in the _chrFromEvent. The mask is still > > > working though - I could just comment this line "chr = event.key();" , > > > right? Am I breaking any functionality by doing this? > > > > > On 19 Mrz., 12:07, green <[email protected]> wrote: > > > > Hi Stefan, > > > > > > IE problem has been cleared by T.J. Crowder in this thread: > > >http://groups.google.com/group/prototype-scriptaculous/browse_thread/.. > .. > > > > It's actually a problem of my test html page, not relevant to the > > > > javascript. > > > > > > < > http://groups.google.com/group/prototype-scriptaculous/browse_thread/.. > > > .>Greeting > > > > from Sydney, Green > > > > > > On Fri, Mar 19, 2010 at 5:37 PM, lars_stecken <[email protected]> > wrote: > > > > > Hey Green, > > > > > thanks a bunch for this quick answer. I'll try it out today and > will > > > > > also look into the IE problem - maybe I can help. > > > > > > > Greets from Berlin, Stefan > > > > > > > On 19 Mrz., 00:36, green <[email protected]> wrote: > > > > > > Hi Stefan, > > > > > > > > Thanks for reporting this problem. I have a quick fix enable you > to > > > call > > > > > new > > > > > > pMask() multiple times without impact fields that is already > > > initialized. > > > > > I > > > > > > have tested it on firefox (3.6) and Chrome (4.0). Running this > script > > > on > > > > > IE8 > > > > > > failed due to Error: "Event.prototype is null or not an object". > I > > > will > > > > > keep > > > > > > watching this IE bug later. > > > > > > > > Thx, > > > > > > GreenOn Wed, Mar 17, 2010 at 10:37 PM, lars_stecken < > > > [email protected]> > > > > > wrote: > > > > > > > Hey good work with the script. Ran into a little problem: I am > > > copying > > > > > > > form elements which have a pmask applied to. Unfortunately the > new > > > > > > > elements do not get recognized by pMask and calling new pMask() > > > again > > > > > > > will result in malfunction of the already initialized fields > while > > > the > > > > > > > new fields work fine. Is there a way to initialize only > particular > > > > > > > fields or to re-initialize the complete document without > affecting > > > the > > > > > > > "old" fields? > > > > > > > > > Thanks for your help. > > > > > > > Cheers, Stefan > > > > > > > > > On 6 Mrz., 14:06, green <[email protected]> wrote: > > > > > > > > Hi, > > > > > > > > > > I have port Fabio Zendhi Nagao's > > > > > > > > iMask<http://zendold.lojcomm.com.br/imask/>tool to prototype > > > with > > > > > > > > changes (or, you can say, enhancements). You can > > > > > > > > download it athttp://github.com/greenlaw110/pMask/ > > > > > > > > > > Thx, > > > > > > > > Green > > > > > > > > > -- > > > > > > > You received this message because you are subscribed to the > Google > > > > > Groups > > > > > > > "Prototype & script.aculo.us" group. > > > > > > > To post to this group, send email to > > > > > > > [email protected]. > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > > > > > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > > > > > > > . > > > > > > > For more options, visit this group at > > > > > > >http://groups.google.com/group/prototype-scriptaculous?hl=en. > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Prototype & script.aculo.us" group. > > > > > To post to this group, send email to > > > > > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/prototype-scriptaculous?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Prototype & script.aculo.us" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<prototype-scriptaculous%[email protected]> > <prototype-scriptaculous%[email protected]<prototype-scriptaculous%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<prototype-scriptaculous%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
