value
instead of just blanking the text.
Increased range of accepted characters for input.
Josh Bush
digitalbush.com
There is now a new version of my Masked Input Plugin (
http://digitalbush.com/projects/masked-input-plugin/ ) for jQuery.
Version 1.2.1 moves one step closer to my bigger picture for the
plugin. I had to make a few breaking changes to do so, but I feel
that the end result is worth it. This
that the user realizes he didn't completely
filled in the content.
On Mon, Dec 22, 2008 at 3:39 PM, Josh Bush josh.b...@gmail.com wrote:
There is now a new version of my Masked Input Plugin (
http://digitalbush.com/projects/masked-input-plugin/) for jQuery.
Version 1.2.1 moves one step closer
There is now a new version of my Masked Input Plugin for jQuery(http://
digitalbush.com/projects/masked-input-plugin/). After a long absence
with this project, I finally decided to tackle some of the more
requested features that have been sent to me. I also did some big
reorganization to make
in the old position and once in the new).
You can download the latest version at:
http://digitalbush.com/projects/masked-input-plugin
or from the jQuery plugins repository.
Thank You
Josh Bush
digitalbush.com
();//Perform initial check for existing values
});
function checkValST0(){
setTimeout(checkVal,0);
};
And maybe it's better to accept RegExp to use it like a template for
validation?
2007/11/30, Josh Bush [EMAIL
of
if ($.browser.msie)
this.onpaste= function(){setTimeout(checkVal,0);};
else if ($.browser.mozilla)
this.addEventListener('input',checkVal,false);
2007/11/30, Josh Bush [EMAIL PROTECTED]:
I just released version 1.1.2 of my Masked Input Plugin for jQuery.
Felix
I just released version 1.1.2 of my Masked Input Plugin for jQuery.
Felix Geisendörfer helped me mash out a few things with this release.
He fixed the bug for Mac/Firefox with the backspace key and got me to
open up the caret positioning functions. Thanks Felix!
Here are the changes for this
share
some internal methods like character positioning, but that is about
it. I'm thinking really hard about making them separate files, but
all in the $.fn.mask namespace.
Josh
digitalbush.com
On Oct 20, 9:32 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Josh Bush schrieb: A lot of people seem
A lot of people seem to need dynamic width number masking. Where
currency symbols, decimal separators, and thousands separators are
applied automatically. I'm thinking about taking this on, but I have
a few questions.
1.Should is be a part of the masked input plugin or a separate new
plugin?
It would be good to see this detect and use Brandon Aaron's Live
Query( http://brandonaaron.net/docs/livequery/ ) for new elements
added after $.jss.apply() is called.
Josh
On Oct 6, 6:39 pm, Andy Kent [EMAIL PROTECTED] wrote:
Hi Guys,
This is a plug-in that was thrown together in a few
(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
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
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.
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
Okay, I had to make a quick fix on this today because I basically
broke the plugin for IE. I made the mistake of using $.each() on a
string and each character was showing as undefined. Does anyone know
if $.each is supposed to work on strings? It seems to work just fine
in every other browser
You could add lt in at the top of your plugin if it's missing.
Something like:
if(!jQuery.fn.lt){
jQuery.fn.lt=function(n){
return this.slice(0,n);
}
}
Josh
On Sep 11, 3:32 pm, Stephan Beal [EMAIL PROTECTED] wrote:
Hi, all!
i'm going through my plugins and making sure they work
I just did this for my masked input plugin.
$.fn.foo=function(){
return this.each(function(){
function bar(){
//Do Something useful here
//Note: this function is deeply buried in scope and
unaccessible from outside
}
$(this).bind(keydown,bar);
Sorry about the typo, the last close parenthesis(on unfoo()) should be
removed.
On Sep 10, 6:46 am, Josh Bush [EMAIL PROTECTED] wrote:
I just did this for my masked input plugin.
$.fn.foo=function(){
return this.each(function(){
function bar(){
//Do Something useful here
The easiest way around the asp.net control id rewriting is something
like this:
var $myControl=$(#%=MyControl.ClientID%);
When that page is generated, the server will substitute in the real ID
of the control it has generated.
On Aug 18, 3:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I
possible that some of the drag drop
efforts over there might help you out.
I wasn't able to figure out how to insert / delete rows - I was able
to get them to turn red (double click) and green (single click) - not
sure beyond that.
But yeah, great work!
--John
On 8/12/07, Josh Bush [EMAIL
it.
Great work so far Josh!
Glen
On 8/13/07, Josh Bush [EMAIL PROTECTED] wrote:
To add rows I added a jQuery method that you call like this:
var t=$(#test);
var rows=[];
for(var i=0;i500;i++)
rows.push([Test,Row,i]);
t.addRow(rows); //Multi-Row Append to end
t.addRow([Test,Row
I've been thinking about this for a while, and so I took a couple of
days last week to get something together. I made a plugin for tables
that attempts to create a common base for adding functionality to
tables.
Please check it out at http://digitalbush.com/projects/jquery-grid-plugin
I've
3 Beta. It's
just IE that is giving me fits.
Josh
On Aug 7, 10:09 pm, RobG [EMAIL PROTECTED] wrote:
On Aug 8, 11:56 am, Josh Bush [EMAIL PROTECTED] wrote:
Well, I feel stupid. it's not the join that's taking so long, it's
the $( really big DOM string with 1,000 rows and 3 columns
, 10:09 pm, RobG [EMAIL PROTECTED] wrote:
On Aug 8, 11:56 am, Josh Bush [EMAIL PROTECTED] wrote:
Well, I feel stupid. it's not the join that's taking so long, it's
the $( really big DOM string with 1,000 rows and 3 columns) that
takes so dang long on IE7.
IE is notoriously slow if you
.
On Aug 8, 11:52 am, Josh Bush [EMAIL PROTECTED] wrote:
Oh, it's fine. I wasn't expecting someone to write the code for me.
I'm just working on a plugin and hitting a roadblock with IE here.
I'm going to try and whip up an example of what I'm seeing that
illustrates this outside of my
that the elements you
get back match the elements you put in. Most of the munging is to get
rid of extra elements IE adds to tables, so it's much, much faster
(especially for tables) to just start with a DOM node in the first place
if at all possible.
Cheers,
Luke
Josh Bush wrote:
Well, I feel
I had read somewhere that IE didn't support .innerHTML for the tbody
element. Will I have to recreate the entire table HTML? Sorry for
the noob question; I'm still a fish out of water in javascript at
times.
Josh
On Aug 8, 8:18 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
Well, I
I'm working on a project that makes a web service call and pulls back
data. Sometimes that data can be 1,000ish rows. What is the fastest
way that I can create those rows? Right now I'm just doing string
concatenation to make HTML and passing that to the .append method. I
read the other day
I did some more testing on my end. If I create all of the html first
using the array join method for concatenation, and then .append() once
instead of .append()ing 1,000 times, then I'm showing about 90%
improvement in speed. Not too shabby.
On Aug 7, 3:40 pm, Josh Bush [EMAIL PROTECTED] wrote
7, 3:40 pm, Josh Bush [EMAIL PROTECTED] wrote:
I'm working on a project that makes a web service call and pulls back
data. Sometimes that data can be 1,000ish rows. What is the fastest
way that I can create those rows? Right now I'm just doing string
concatenation to make HTML and passing
in
javascript sometimes. :(
Josh
On Aug 7, 3:40 pm, Josh Bush [EMAIL PROTECTED] wrote:
I'm working on a project that makes a web service call and pulls back
data. Sometimes that data can be 1,000ish rows. What is the fastest
way that I can create those rows? Right now I'm just doing string
of the FF bug, I'll contact you
offline about it as I can't reproduce it on my windows machine.
Josh
On 7/27/07, Chris Scott [EMAIL PROTECTED] wrote:
Josh Bush wrote:
I just wanted to announce that I've finally released v1.0 of my masked
input plugin. Please check it out at:
http
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
mask i.e. for date
inputs:
time input [0..23]:[0..59]
date input [1..31].[1..12].[1900..2007] (and check for 29th Feb)
Do you want to add this in your roadmap?
Michael
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
I found a bug and updated the file at
http://digitalbush.com/files/jquery/findnext/jquery.findnext.js
It seems like it's doing what I need it to do now.
Josh
On Jul 25, 4:49 pm, Josh Bush [EMAIL PROTECTED] wrote:
I think I'll be doing a final 1.0 release of masked input. Thanks for
keeping
, regardless of the location. I posted the code that works for
me on this
thread:http://groups.google.com/group/jquery-en/browse_thread/thread/d9f5267...
Any chance of a release on maskedInput soon?
On Jul 25, 3:02 pm, Josh Bush [EMAIL PROTECTED] wrote:
.next() grabs the very next sibling. I
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
.next() grabs the very next sibling. I need to be able to grab the
very next occurrence of an object if it's a sibling, cousin (parent's
next sibling's child), uncle/aunt(parent's next sibling), nephew/
niece(sibling's child), or whatever. If memory serves, .next() used
to have this behavior
I have an intensive operation that occurs in my code, and when it does
animated gifs pause their animating. I tried wrapping the offending
code in a setTimeout(function(){...},0) with no luck.
Right now the basic code looks like this:
$(#gif).show();
//#bigtable has 1500 rows 4 columns wide
I had some mild success last night with implementing a version of this per
the items Klaus and I discussed. It's really messy and very brittle at this
moment or I would share it. I'll poke around a bit more this weekend and
see what I can make of it. I think I figured out why the original
as
I have something worth showing.
Josh
On 7/13/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Josh Bush wrote:
I think I may dig around the jQuery source to get some hints on
parsing elements. I've yet to even take a peek inside!
Beware of those regexp monsters! They can eat your brain
It seems like a very striaghtforward way to create dom elements. I
like it. What would you make the method name? $$ instead of $?
On Jul 12, 4:28 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
This looks really
Agreed!
In addition, I'd like to see the nested element syntax slightly
cleaned up:
'div#parentdiv#childdiv#grandchild'
and
'div#parentdiv#child1,div#child2'
I like this much better than all of that bracketing mess he shows.
On Jul 12, 4:57 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
Jörn
On Jul 12, 5:15 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
Josh Bush wrote:
Agreed!
In addition, I'd like to see the nested element syntax slightly
cleaned up:
'div#parentdiv#childdiv#grandchild'
and
'div#parentdiv#child1,div#child2'
The latter could become
'div#parent div
I have a table that has 1,000 rows and I'm trying to bind a function
to the click event of each row. This can be quite slow the way I'm
currently doing it. Here is an example my my current process:
this.find(settings.selector).click(function(){selectRow(this);});
function
Thank you kind sir. You just made my day. There was two similar
calls in that plugin one for click and the other for double click. It
was taking 16+ seconds and is now a respectable 300ms.
Josh
On Jul 5, 11:03 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
I have a table that has
That looks oddly familiar... :) I'm fairly certain that there isn't a
cross-browser way to detect pastes. The sample Jörn posted will only
catch IE and Mozilla.
Josh
On Jul 5, 3:35 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
PaulM wrote:
how can I prohibit from users pasting content into
...
THird, should you change the name to jquery.mask to reflect the
changes you made to the plugin?
Thanks,
Eric
On Jul 2, 8:08 pm, Josh Bush [EMAIL PROTECTED] wrote:
I keep coming across a few bugs here and there that need fixing. I've
released the 3rd RC for my masked input plugin
I keep coming across a few bugs here and there that need fixing. I've
released the 3rd RC for my masked input plugin. This one has breaking
changes, so if anyone is using it, please proceed carefully.
Here's what I managed to get into this release.
* BREAKING CHANGE: The mask function has
Thanks for the feedback. Does anyone else have any input on this. I
think I'll be pushing a new release this weekend.
Josh
On Jun 28, 7:33 pm, Josh Bush [EMAIL PROTECTED] wrote:
As my masked input plugin approaches 1.0, I'm noticing that my plugin
isn't following the conventions
(Webunity) [EMAIL PROTECTED] wrote:
Nice! However, when you see the mask and press ESC the mask also
disappears ;)
On 28 jun, 03:21, Josh Bush [EMAIL PROTECTED] wrote:
Hey there, I'm back at it trying to push to a 1.0 release. I made
some code changes, so I would like some verification
also
disappears ;)
On 28 jun, 03:21, Josh Bush [EMAIL PROTECTED] wrote:
Hey there, I'm back at it trying to push to a 1.0 release. I made
some code changes, so I would like some verification that all is well
before I move this to a v1.0 status.
The following is a list of changes
issue.
On Jun 28, 3:14 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Josh Bush wrote:
What an odd error. I'll look into it sometime this weekend. If
that's the worst problem that gets found, I'll consider myself lucky!
Thank you for the heads up.
Its always a good sign for a pretty stable
As my masked input plugin approaches 1.0, I'm noticing that my plugin
isn't following the conventions of the jQuery library itself.
Currently my plugins main method is .maskedinput(mask,options)
I'm thinking I should change it to .maskInput(mask,options) or
simpley .mask(mask,options)
I think
Hey there, I'm back at it trying to push to a 1.0 release. I made
some code changes, so I would like some verification that all is well
before I move this to a v1.0 status.
The following is a list of changes for this release.
* Now supports user defined placeholder characters by calling
for me.
Because i'm working on an intranet site i can't show you the actual page
but i made a similar one athttp://icreate.be/jquery/test.php. I'm using
the jqModal, tooltip and of course the masked input plugin.
I hope this can give you some insight.
David
Josh Bush schreef:
I'm getting
characters. Same for the date.
It looks very good though, hopefully you'll work it out quickly!
Fred
On 6/22/07, Josh Bush [EMAIL PROTECTED] wrote:
I'm getting there. I've released another revision to my Masked Input
Plugin for jQuery. I'm calling this release candidate 1 because
Yes, it should be fixed now.
On Jun 22, 12:17 pm, Rafael Santos [EMAIL PROTECTED] wrote:
Does the bug on Opera has been fixed?
That one when you try to clean some input that has value and it doesn't get
cleaned.
2007/6/22, Josh Bush [EMAIL PROTECTED]:
That error is from a lightbox
Hey guys and gals. I learned about the .call() functionality today
and decided to modify the behavior of the optional mask completed
function. Now you don't need to specify an parameter when you define
your function; you can simply use this.
Before:
I'll look into these issues some more. I was able to duplicate the
Opera issue the other night. Does anyone know of any Opera javascript
debuggers?
Thanks
josh
On Jun 13, 1:03 pm, Josh Bush [EMAIL PROTECTED] wrote:
I've released a minor update to the second beta of my Masked Input
Plugin
. The same thing could be said for the last 4
digits as well. If a user types 2 digits, you could expand that out
to the full 4 digit year.
Just wanted to throw those ideas out there. Thanks for the feedback!
Josh
On Jun 13, 3:56 am, David Duymelinck [EMAIL PROTECTED] wrote:
Josh Bush schreef
is present.
--
David Duymelinck
[EMAIL PROTECTED]
Josh Bush schreef:
If the users types '1' how would you know if the user means 01, 11
or 12?
However, 2-9 could always be interpreted as 0+digit. You
could always hook into the keypress event and detect a leading digit
You too? You are absolutely right that it is very annoying.
-josh
On Jun 13, 6:30 am, Gordon [EMAIL PROTECTED] wrote:
Or at least Google keeps claiming I am one. It's really getting
annoying and is making the group harder to use than it should be.
I've released a minor update to the second beta of my Masked Input
Plugin for jQuery. This release fixes a small bug where the mask
disappears on focus when the input box has no data.
Please check it out at: http://digitalbush.com/projects/masked-input-plugin/
I was just wondering, should a val() call invoke a change event? If
not, is there a good way to emulate this behavior.
Thanks
Josh
digitalbush.com
Thank you. Any idea how I could attach to regular javascript call like
x.value='something' ?
On Jun 12, 2:44 pm, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
I was just wondering, should a val() call invoke a change event? If
not, is there a good way to emulate this behavior.
You
One more quick thing, is it possible to attach this to the val() of a
single input, or am I limited to extending this globally?
On Jun 12, 2:44 pm, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
I was just wondering, should a val() call invoke a change event? If
not, is there a good way
My goal was to detect a val() call from within my masked input plugin.
So, when someone says $(#id).maskedinput('(999) 999-') , I
would love to be able to detect when that value had been set
programatically and then re-check the masking.
So, if someone does a $(#id).val('555-867-5309')
That's kind of what I was thinking. I was hoping that their might be
a better way.
On Jun 12, 3:43 pm, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
My goal was to detect a val() call from within my masked input plugin.
So, when someone says $(#id).maskedinput('(999) 999-') , I
Actually, there currently isn't a programmatic way to set the value
and have it be masked automagically for the developer. I just wanted
to see if I could hook into existing methods to keep from having to
add too much syntax. It's driven off of focus,blur,keypress and
pasting(on certain
either 5 or 5+4. But if
Put the mask as 5+4, then it disappears if it receives just 5.
Again, great plugin.
Glen
On 6/12/07, Josh Bush [EMAIL PROTECTED] wrote:
I'm proud to announce the second beta of my Masked Input Plugin for
jQuery. This release fixes a few bugs from Beta 1 and adds
Sorry that I messed up the URL, the project is located at:
http://digitalbush.com/projects/watermark-input-plugin
Stupid last minute changes. I fixed my goof. Please see if that
corrects the problem.
On Jun 1, 8:45 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
It's been a long time since I've posted anything. I've been busy, but
I did manage to squeeze out another plugin before my vacation.
as well?
Rey...
Josh Bush wrote:
Stupid last minute changes. I fixed my goof. Please see if that
corrects the problem.
On Jun 1, 8:45 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Josh,
It's been a long time since I've posted anything. I've been busy, but
I did manage
, Josh Bush [EMAIL PROTECTED] wrote:
I haven't had a chance to test any of my plugins with v1.1.3. I'll be
looking into it soon. Thanks for the response!
On Jun 1, 9:28 am, Rey Bango [EMAIL PROTECTED] wrote:
Looks great in IE7 and FF 2.0.0.4 Josh. Great work. This is a very
useful
is here:
http://strtest.alexezell.com/js/hint.js
and the usage would be something like:
input type=text size=40 value= title=City, State, Zip
name=fromLocation id=fromLocation class=blur /
Just another option in case it gives you any ideas.
/alex
On 6/1/07, Josh Bush [EMAIL PROTECTED
77 matches
Mail list logo