[jQuery] Introduction and Masked Input Plugin

[jQuery] Introduction and Masked Input Plugin

Very slick plugin, I will for sure use this on my next application. An
enhancement might be to provide a elegant way of handling non fixed length
numbers, such as currency inputs. So I guess its not so much masking, but
pattern matching.
$("#amount").maskedinput("999,999.99");
Nice job!
--- mrcarxpert <josh@digitalbush.com> wrote:
>
> So I'm reading that FF, Opera, and Safari support the
> DOMCharacterDataModified event. I'll try to look into this further to
> produce something to handle pastes. I've never messed with this event
> before, so I'm just shooting the dark here. Any direction from the
> crowd?
>
> Josh
>
>
> John Resig wrote:
> >
> > This is so awesome. I love how the backspace key forces you into the
> > correct
> > space.
> >
> > The tricky bit, that I found, is that if you paste in a block of text
> > (either correct, or incorrect) or if the browser's autocomplete fills
> in
> > an
> > incorrect value it doesn't "correct" it until you hit another key
> inside
> > the
> > field.
> >
> > Offhand, I think the best way to "solve" this is to have a
> > setInterval(...)
> > check the fields at a specified rate (a couple times a second? or
> whatever
> > seems reasonable). This should solve both issues.
> >
> > Again, this is really really great, I'll be putting this into place,
> like,
> > tomorrow.
> >
> > --John
> >
> > On 2/13/07, mrcarxpert <josh@digitalbush.com>