I asked for the custom masks based on a website I'm doing where the
customers will have to input their prescription numbers.  The numbers
are alien to the customer (just like for you) and are prone to errors.

The custom masks add lots of flexibility to the plugin:  For example,
prescriptions go up (or down) by quarter increments, so you could add
3 placeholders:   '~','[+-]'     '@','[0257]'  and  '^','[05]'.   Then
the mask would be:  '[EMAIL PROTECTED]'

This would force the customer to start with a + or -, and put in 4
digits in increments of .25, such as +04.75 or -01.50.  They could
still make a few mistakes, like putting in +04.20 or -01.55, but you
can use Josh's optional "completed:" parameter to check for those
errors:   if (entry * 100 % 25 == 0) success; else failure;

I use this plugin along with Remy Sharp's labelOver:
http://remysharp.com/2007/03/19/a-few-more-jquery-plugins-crop-labelover-and-pluck/
to make a really lightweight but responsive form.

Thanks for making it official Josh, nice work.


On Jul 26, 11:06 am, "Christopher Jordan" <[EMAIL PROTECTED]>
wrote:
> I was about to do something like this for SSNs but you beat me to the punch.
> Great work Josh! You just saved me loads of time! :o)
>
> Cheers!
> Chris
>
> On 7/26/07, Josh Bush <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> > Sorry for the confusing eye script example.  Someone on this list had a
> > request and gave me that as an example. That's what I tested with and that's
> > what I threw up on the site.  If you have a more clear example, I'd be happy
> > to place it up on the website for the benefit of everyone.  For my personal
> > use, the built in placeholders serve me well.  That's why they are the built
> > in!  :)
>
> > Josh
>
> > On 7/26/07, Bernd Matzner <[EMAIL PROTECTED]> wrote:
>
> > > Terrific, Josh! Thanks for your work on this baby.
> > > Took some time to figure out how the Eye script custom +/- placeholder
> > > is supposed to work, but I guess it's just a matter of adding a
> > > tooltip hint on valid input (fortunately, I don't need glasses, so I
> > > guess that's why I'm not familiar with that - that's what it's for,
> > > right?)
>
> > > Thanks again!
>
> > > Bernd
>
> > > On Jul 26, 2:21 am, Josh Bush <[EMAIL PROTECTED] > wrote:
> > > > I just wanted to announce that I've finally released v1.0 of my masked
> > > > input plugin.  Please check it out at:
>
> > > >http://digitalbush.com/projects/masked-input-plugin
>
> > > > Thank You
> > > > Josh
> > > > digitalbush.com
>
> --http://cjordan.us- Hide quoted text -
>
> - Show quoted text -

Reply via email to