[jQuery] Re: Masked Input Plugin 1.1
The best I can tell, the only thing my implementation is missing is the number masking example that they have. I'm just not too keen on how that one takes over so much control from the textbox. With that one, you can't highlight text in the box and that means you can't copy that value to the clipboard. Also, it doesn't handle the paste events for IE and FF like mine does. I think I would like to implement the currency masking, and I also want to add an option to allow incomplete masks. Thanks for the link. It's always good to see other similar things. Josh On Oct 5, 11:40 am, "Jeferson Koslowski" <[EMAIL PROTECTED]> wrote: > Hi, > > do u know the iMask plugin for Mootools? Its a very nice input mask tool and > i think some features could be incorporated in ur plugin. Take a > look:http://zend.lojcomm.com.br/imask/ > > On 10/4/07, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > For those that care, the problem ended up being a result of my using > > $.each() over a string. Apparently IE won't let you use [] to access > > an individual character from a string. The solution for me was to > > call .split on the string as I passed it into $.each() so that it > > looks like this "$.each(myString.split(''),function(i,c){/*code > > here*/});" > > > Josh > > > On Oct 4, 12:01 am, Flesler <[EMAIL PROTECTED]> wrote: > > > Congratz, the example works fine now, in IE. > > > > On Oct 3, 3:02 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > I managed to get this fixed last night and put a new version up. I'll > > > > be updating the jquery plugins page tonight. > > > > > Josh > > > > > On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > > It appears something I've done had totally borked this plugin for > > IE. > > > > > I'll figure it out real quick and get a new version out. > > > > > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > > > > > > > Your plugin is great, I checked it out some time ago... you know, > > the > > > > > > example fails in IE (6, windows). When I focus an input or type in > > it, > > > > > > an error pops saying "'res' is not defined". > > > > > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > > > > I just released version 1.1 of my Masked Input Plugin for > > jQuery. I > > > > > > > have more features in the pipeline to add to 1.2, but I wanted > > to get > > > > > > > a few fixes out the door before doing so. The only thing new > > this time > > > > > > > is an unmask method. > > > > > > > > In addition to code changes, I've made a few more enhancements. > > I've > > > > > > > added a packed version for those who want the smallest possible > > > > > > > footprint. I've also given the project page a face lift to make > > things > > > > > > > easier to find. > > > > > > > > Below is a list of changes this time: > > > > > > > > * NEW FEATURE: unmask() method to remove masking for a > > previously > > > > > > > masked input. > > > > > > > * Safari cursor position fix. > > > > > > > * Cursor position behavior change: Cursor goes to the end of > > the > > > > > > > input on a completed input. Cursor goes to the first placeholder > > > > > > > position on a blank input. > > > > > > > * Fixed improper escaping of certain mask characters. > > > > > > > * Code refactoring to reduce size and complexity. > > > > > > > > Please check it out at: > >http://digitalbush.com/projects/masked-input-plugin > > > > > > > > Thank You > > > > > > > Josh > > > > > > > digitalbush.com- Hide quoted text - > > > > > - Show quoted text -
[jQuery] Re: Masked Input Plugin 1.1
Hi, do u know the iMask plugin for Mootools? Its a very nice input mask tool and i think some features could be incorporated in ur plugin. Take a look: http://zend.lojcomm.com.br/imask/ On 10/4/07, Josh Bush <[EMAIL PROTECTED]> wrote: > > > For those that care, the problem ended up being a result of my using > $.each() over a string. Apparently IE won't let you use [] to access > an individual character from a string. The solution for me was to > call .split on the string as I passed it into $.each() so that it > looks like this "$.each(myString.split(''),function(i,c){/*code > here*/});" > > Josh > > On Oct 4, 12:01 am, Flesler <[EMAIL PROTECTED]> wrote: > > Congratz, the example works fine now, in IE. > > > > On Oct 3, 3:02 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > I managed to get this fixed last night and put a new version up. I'll > > > be updating the jquery plugins page tonight. > > > > > Josh > > > > > On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > > It appears something I've done had totally borked this plugin for > IE. > > > > I'll figure it out real quick and get a new version out. > > > > > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > > > > > > > Your plugin is great, I checked it out some time ago... you know, > the > > > > > example fails in IE (6, windows). When I focus an input or type in > it, > > > > > an error pops saying "'res' is not defined". > > > > > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > > > > I just released version 1.1 of my Masked Input Plugin for > jQuery. I > > > > > > have more features in the pipeline to add to 1.2, but I wanted > to get > > > > > > a few fixes out the door before doing so. The only thing new > this time > > > > > > is an unmask method. > > > > > > > > In addition to code changes, I've made a few more enhancements. > I've > > > > > > added a packed version for those who want the smallest possible > > > > > > footprint. I've also given the project page a face lift to make > things > > > > > > easier to find. > > > > > > > > Below is a list of changes this time: > > > > > > > > * NEW FEATURE: unmask() method to remove masking for a > previously > > > > > > masked input. > > > > > > * Safari cursor position fix. > > > > > > * Cursor position behavior change: Cursor goes to the end of > the > > > > > > input on a completed input. Cursor goes to the first placeholder > > > > > > position on a blank input. > > > > > > * Fixed improper escaping of certain mask characters. > > > > > > * Code refactoring to reduce size and complexity. > > > > > > > > Please check it out at: > http://digitalbush.com/projects/masked-input-plugin > > > > > > > > Thank You > > > > > > Josh > > > > > > digitalbush.com- Hide quoted text - > > > > > - Show quoted text - > >
[jQuery] Re: Masked Input Plugin 1.1
For those that care, the problem ended up being a result of my using $.each() over a string. Apparently IE won't let you use [] to access an individual character from a string. The solution for me was to call .split on the string as I passed it into $.each() so that it looks like this "$.each(myString.split(''),function(i,c){/*code here*/});" Josh On Oct 4, 12:01 am, Flesler <[EMAIL PROTECTED]> wrote: > Congratz, the example works fine now, in IE. > > On Oct 3, 3:02 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > I managed to get this fixed last night and put a new version up. I'll > > be updating the jquery plugins page tonight. > > > Josh > > > On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > It appears something I've done had totally borked this plugin for IE. > > > I'll figure it out real quick and get a new version out. > > > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > > > > > Your plugin is great, I checked it out some time ago... you know, the > > > > example fails in IE (6, windows). When I focus an input or type in it, > > > > an error pops saying "'res' is not defined". > > > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > > I just released version 1.1 of my Masked Input Plugin for jQuery. I > > > > > have more features in the pipeline to add to 1.2, but I wanted to get > > > > > a few fixes out the door before doing so. The only thing new this time > > > > > is an unmask method. > > > > > > In addition to code changes, I've made a few more enhancements. I've > > > > > added a packed version for those who want the smallest possible > > > > > footprint. I've also given the project page a face lift to make things > > > > > easier to find. > > > > > > Below is a list of changes this time: > > > > > > * NEW FEATURE: unmask() method to remove masking for a previously > > > > > masked input. > > > > > * Safari cursor position fix. > > > > > * Cursor position behavior change: Cursor goes to the end of the > > > > > input on a completed input. Cursor goes to the first placeholder > > > > > position on a blank input. > > > > > * Fixed improper escaping of certain mask characters. > > > > > * Code refactoring to reduce size and complexity. > > > > > > Please check it out > > > > > at:http://digitalbush.com/projects/masked-input-plugin > > > > > > Thank You > > > > > Josh > > > > > digitalbush.com- Hide quoted text - > > > - Show quoted text -
[jQuery] Re: Masked Input Plugin 1.1
Congratz, the example works fine now, in IE. On Oct 3, 3:02 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > I managed to get this fixed last night and put a new version up. I'll > be updating the jquery plugins page tonight. > > Josh > > On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > It appears something I've done had totally borked this plugin for IE. > > I'll figure it out real quick and get a new version out. > > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > > > > Your plugin is great, I checked it out some time ago... you know, the > > > example fails in IE (6, windows). When I focus an input or type in it, > > > an error pops saying "'res' is not defined". > > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > > I just released version 1.1 of my Masked Input Plugin for jQuery. I > > > > have more features in the pipeline to add to 1.2, but I wanted to get > > > > a few fixes out the door before doing so. The only thing new this time > > > > is an unmask method. > > > > > In addition to code changes, I've made a few more enhancements. I've > > > > added a packed version for those who want the smallest possible > > > > footprint. I've also given the project page a face lift to make things > > > > easier to find. > > > > > Below is a list of changes this time: > > > > > * NEW FEATURE: unmask() method to remove masking for a previously > > > > masked input. > > > > * Safari cursor position fix. > > > > * Cursor position behavior change: Cursor goes to the end of the > > > > input on a completed input. Cursor goes to the first placeholder > > > > position on a blank input. > > > > * Fixed improper escaping of certain mask characters. > > > > * Code refactoring to reduce size and complexity. > > > > > Please check it out > > > > at:http://digitalbush.com/projects/masked-input-plugin > > > > > Thank You > > > > Josh > > > > digitalbush.com- Hide quoted text - > > - Show quoted text -
[jQuery] Re: Masked Input Plugin 1.1
I managed to get this fixed last night and put a new version up. I'll be updating the jquery plugins page tonight. Josh On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > It appears something I've done had totally borked this plugin for IE. > I'll figure it out real quick and get a new version out. > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > > > Your plugin is great, I checked it out some time ago... you know, the > > example fails in IE (6, windows). When I focus an input or type in it, > > an error pops saying "'res' is not defined". > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > > > > I just released version 1.1 of my Masked Input Plugin for jQuery. I > > > have more features in the pipeline to add to 1.2, but I wanted to get > > > a few fixes out the door before doing so. The only thing new this time > > > is an unmask method. > > > > In addition to code changes, I've made a few more enhancements. I've > > > added a packed version for those who want the smallest possible > > > footprint. I've also given the project page a face lift to make things > > > easier to find. > > > > Below is a list of changes this time: > > > > * NEW FEATURE: unmask() method to remove masking for a previously > > > masked input. > > > * Safari cursor position fix. > > > * Cursor position behavior change: Cursor goes to the end of the > > > input on a completed input. Cursor goes to the first placeholder > > > position on a blank input. > > > * Fixed improper escaping of certain mask characters. > > > * Code refactoring to reduce size and complexity. > > > > Please check it out at:http://digitalbush.com/projects/masked-input-plugin > > > > Thank You > > > Josh > > > digitalbush.com
[jQuery] Re: Masked Input Plugin 1.1
It appears something I've done had totally borked this plugin for IE. I'll figure it out real quick and get a new version out. On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote: > Your plugin is great, I checked it out some time ago... you know, the > example fails in IE (6, windows). When I focus an input or type in it, > an error pops saying "'res' is not defined". > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > > > I just released version 1.1 of my Masked Input Plugin for jQuery. I > > have more features in the pipeline to add to 1.2, but I wanted to get > > a few fixes out the door before doing so. The only thing new this time > > is an unmask method. > > > In addition to code changes, I've made a few more enhancements. I've > > added a packed version for those who want the smallest possible > > footprint. I've also given the project page a face lift to make things > > easier to find. > > > Below is a list of changes this time: > > > * NEW FEATURE: unmask() method to remove masking for a previously > > masked input. > > * Safari cursor position fix. > > * Cursor position behavior change: Cursor goes to the end of the > > input on a completed input. Cursor goes to the first placeholder > > position on a blank input. > > * Fixed improper escaping of certain mask characters. > > * Code refactoring to reduce size and complexity. > > > Please check it out at:http://digitalbush.com/projects/masked-input-plugin > > > Thank You > > Josh > > digitalbush.com
[jQuery] Re: Masked Input Plugin 1.1
Your plugin is great, I checked it out some time ago... you know, the example fails in IE (6, windows). When I focus an input or type in it, an error pops saying "'res' is not defined". On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote: > I just released version 1.1 of my Masked Input Plugin for jQuery. I > have more features in the pipeline to add to 1.2, but I wanted to get > a few fixes out the door before doing so. The only thing new this time > is an unmask method. > > In addition to code changes, I've made a few more enhancements. I've > added a packed version for those who want the smallest possible > footprint. I've also given the project page a face lift to make things > easier to find. > > Below is a list of changes this time: > > * NEW FEATURE: unmask() method to remove masking for a previously > masked input. > * Safari cursor position fix. > * Cursor position behavior change: Cursor goes to the end of the > input on a completed input. Cursor goes to the first placeholder > position on a blank input. > * Fixed improper escaping of certain mask characters. > * Code refactoring to reduce size and complexity. > > Please check it out at:http://digitalbush.com/projects/masked-input-plugin > > Thank You > Josh > digitalbush.com
[jQuery] Re: Masked Input Plugin 1.1
Josh Bush wrote: > I just released version 1.1 of my Masked Input Plugin for jQuery. I > have more features in the pipeline to add to 1.2, but I wanted to get > a few fixes out the door before doing so. The only thing new this time > is an unmask method. > Very nice indeed. However, I found the pattern hint on the Eye Script demo to be confusing - until I looked at the Usage tab and saw that ~ means + or - I had no idea what the first character should be. It looks like your plugin will also be compatible with the overlabel plugin which is very sweet :D http://scott.sauyet.com/thoughts/archives/2007/03/31/overlabel-with-jquery/ Masked Input plugin + Overlabel plugin + whatever Form Validator plugin becomes the de-facto standard should result in some of the most flexible and functional form designs available :D Guy
[jQuery] Re: Masked Input Plugin 1.1
Josh Bush schrieb: I just released version 1.1 of my Masked Input Plugin for jQuery. I have more features in the pipeline to add to 1.2, but I wanted to get a few fixes out the door before doing so. The only thing new this time is an unmask method. In addition to code changes, I've made a few more enhancements. I've added a packed version for those who want the smallest possible footprint. I've also given the project page a face lift to make things easier to find. Below is a list of changes this time: * NEW FEATURE: unmask() method to remove masking for a previously masked input. * Safari cursor position fix. * Cursor position behavior change: Cursor goes to the end of the input on a completed input. Cursor goes to the first placeholder position on a blank input. * Fixed improper escaping of certain mask characters. * Code refactoring to reduce size and complexity. Please check it out at: http://digitalbush.com/projects/masked-input-plugin Great Josh. unmask() is extremely useful to apply multiple masks to a single input based on some other selections, eg. for credicard numbers. For anyone interested in a demo, using both masked input plugin and validation: http://dev.jquery.com/view/trunk/plugins/validate/demo-test/marketo/step2.htm -- Jörn
[jQuery] Re: Masked Input Plugin 1.1
I love this plugin. Great improvements. I wish I had it 4 months ago! :) Glen On 10/2/07, Josh Bush <[EMAIL PROTECTED]> wrote: > > > I just released version 1.1 of my Masked Input Plugin for jQuery. I > have more features in the pipeline to add to 1.2, but I wanted to get > a few fixes out the door before doing so. The only thing new this time > is an unmask method. > > In addition to code changes, I've made a few more enhancements. I've > added a packed version for those who want the smallest possible > footprint. I've also given the project page a face lift to make things > easier to find. > > Below is a list of changes this time: > > * NEW FEATURE: unmask() method to remove masking for a previously > masked input. > * Safari cursor position fix. > * Cursor position behavior change: Cursor goes to the end of the > input on a completed input. Cursor goes to the first placeholder > position on a blank input. > * Fixed improper escaping of certain mask characters. > * Code refactoring to reduce size and complexity. > > Please check it out at: > http://digitalbush.com/projects/masked-input-plugin > > Thank You > Josh > digitalbush.com > >