to the original value
instead of just blanking the text.
Increased range of accepted characters for input.
Josh Bush
digitalbush.com
bit harsh. Maybe that's where a validation should take
> > over and paint the input red so that the user realizes he didn't completely
> > filled in the content.
>
> > On Mon, Dec 22, 2008 at 3:39 PM, Josh Bush wrote:
>
> >> There is now a new version of my M
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 relea
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 room
n 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
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 PROTECTED]>:
>
>
>
>
>
sk, input.jqmask',function(){
>setTimeout(checkVal,0);};)
>
> instead of
> if ($.browser.msie)
>this.onpaste= function(){setTimeout(checkVal,0);};
> else if ($.browser.mozilla)
>this.addEventListener('input',checkVal,false);
>
> 2007/11/30
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 rele
They might 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 schrie
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
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/im
uot;$.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 ge
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 o
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 e
E (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 fea
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'v
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
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(){
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);
$(this).o
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
k: You probably should increase the target-size
> of the resize. Sort of hard now to grab 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
le
> 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 PROTECTED]> wrote:
>
>
>
> > I've been thinking about this for a while, and so I took
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 incl
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,
>
> >W
> look at the jquery.clean function) to make sure 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
se has to scroll through
> 1000 rows.
>
> yours unhelpfully,
>
> Rich Wild.
>
> 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 o
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
orth
noting that this works fine in FF2,Opera, and Safari 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
-Josh
On Aug 7, 8:42 pm, Josh Bush <[EMAIL PROTECTED]> wrote:
> Well, FF2 performance is great at 500-600ms. IE7 is struggling with a
> join of 1,000 elements to the tune of 70,000 ms!
> Each array element contains a string, something like '1 td>2'
>
> Any
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
> concatenatio
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 P
Way cool. Thanks for using my masked input plugin as one of your
examples!
-Josh
On Aug 7, 5:22 am, Mika Tuupola <[EMAIL PROTECTED]> wrote:
> Many times simple select or textarea is not enough. I have been
> working recently in adding possibility to write custom input types
> for jEditable. It
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 wh
I'm unsure 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.
+/- 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 ag
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
great work!! What I'm missing is a more detailed 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, Jos
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
r to the next
> input, 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 PROT
.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 eve
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
$
some results as soon 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!
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 author
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#parent>div#child>div#grandchild'
> > and
>
Agreed!
In addition, I'd like to see the nested element syntax slightly
cleaned up:
'div#parent>div#child>div#grandchild'
and
'div#parent>div#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 Z
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
> interesting:http://www.zachleat.com/web/2007/07/07/domdom-easy-dom-element-crea
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 in
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
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 selec
> consider:http://groups.google.com/group/jquery-en/browse_thread/thread/fad5c5d...
>
> 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]> wr
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 been
:17 am, "Gilles (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 p
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 follo
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
namespace 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 yo
u 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 tha
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
"$.AddM
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:
$("#product").maskedinput("99/99/",{com
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 P
I can only imagine the longer the attribute, the longer the comparison
will take.
String comparison has to compare each char at each position.
"abc"="abc" would involve 3 iterations.
"digitalbush.com"="digitalbush.com" would involve 15 iterations.
In the description at the top with "a, ano
IE 6 Windows
>
> At load time IE throws an error: line 107 style is null or not an object.
>
> I can confirn on the number entery that dleeting from the end with
> multiple backspaces deletes the "(" and then prevents any number to
> appear when typing them.
>
>
the phone number. The "(" disappeared and
> then I couldn't enter any more 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:
>
>
&
e:
> Thanks for your effort but i'm sorry to say the fix didn't work 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 cours
I'm getting there. I've released another revision to my Masked Input
Plugin for jQuery. I'm calling this release candidate 1 because this
is the feature set I wish to implement for v1.0 and I don't anticipate
any breaking API changes.
The following is a list of changes for this release.
* Fi
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
I did not getting my registration email either. I tried to sign up
last night. Any ideas?
On Jun 19, 11:57 am, "John Resig" <[EMAIL PROTECTED]> wrote:
> I just disabled the need for email verification - can you see if
> you're able to login now? (or try signing up again?)
>
> --John
>
> On 6/19
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/
13, 7:47 am, David Duymelinck <[EMAIL PROTECTED]> wrote:
> Yes that's the idea. I was getting overanalytical i guess :)
>
> Josh Bush schreef:
>
>
>
> > So, for the date example, you would like for the user to be able to
> > type "1/1/2006" with the
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.
least one of the previous validated characters 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 "
[2-9]/ then just set the
input to be 0+digit. 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 Duym
digit on blur.
> For instance, I'd like to use it on ZIP and allow 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 a few
features.
The following is a list of changes for this release.
* BREAKING CHANGE: If you were using the optional placeholder
argument, you will need to change it t
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 browsers
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-9
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'
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
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 behavio
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
You don't need jquery.
document.write("<\/
script>");
The important part is to escape the / in the tag.
On Jun 6, 3:43 pm, Joshua Daniel Franklin <[EMAIL PROTECTED]>
wrote:
> Is there a way for jQuery to dynamically load an external js file?
>
> For example, instead of always including:
>
>
>
ribute's value.
>
> It's a similar idea but slightly different. The code is here:
> http://strtest.alexezell.com/js/hint.js
>
> and the usage would be something like:
> name="fromLocation" id="fromLocation" class="blur" />
>
> Just another
omething a little differently under the covers.
> $( "#first").Watermark("http://";, "fixed" ); //or something
> What do you think?
>
> Glen
>
> On 6/1/07, Josh Bush < [EMAIL PROTECTED]> wrote:
> >
> >
> > I haven't had a c
ve you tested it with jQuery v1.1.3 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]>
&g
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 va
Sorry that I messed up the URL, the project is located at:
http://digitalbush.com/projects/watermark-input-plugin
86 matches
Mail list logo