[jQuery] Masked Input Plugin 1.2.2 Released

2009-03-10 Thread Josh Bush
to the original value instead of just blanking the text. Increased range of accepted characters for input. Josh Bush digitalbush.com

[jQuery] Re: Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Josh Bush
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

[jQuery] Masked Input Plugin 1.2.1 Released

2008-12-22 Thread Josh Bush
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

[jQuery] Masked Input Plugin 1.2

2008-12-08 Thread Josh Bush
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

[jQuery] Masked Input Plugin 1.1.3

2008-04-16 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin 1.1.2

2007-11-30 Thread Josh Bush
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]>: > > > > >

[jQuery] Re: Masked Input Plugin 1.1.2

2007-11-30 Thread Josh Bush
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

[jQuery] Masked Input Plugin 1.1.2

2007-11-29 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin Direction

2007-10-20 Thread Josh Bush
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

[jQuery] Masked Input Plugin Direction

2007-10-19 Thread Josh Bush
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?

[jQuery] Re: JSS - New Plug-in

2007-10-07 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin 1.1

2007-10-05 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin 1.1

2007-10-04 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin 1.1

2007-10-03 Thread Josh Bush
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

[jQuery] Masked Input Plugin 1.1.1

2007-10-02 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin 1.1

2007-10-02 Thread Josh Bush
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

[jQuery] Masked Input Plugin 1.1

2007-10-02 Thread Josh Bush
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

[jQuery] Re: 1.2/1.1 slice() vs lt(): what is preferred way to handle both of these cases?

2007-09-11 Thread Josh Bush
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

[jQuery] Re: Remove plugin from an element?

2007-09-10 Thread Josh Bush
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(){

[jQuery] Re: Remove plugin from an element?

2007-09-10 Thread Josh Bush
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

[jQuery] Re: ASP.NET IDs

2007-08-18 Thread Josh Bush
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

[jQuery] Re: Got Grid? Here's a large plugin effort.

2007-08-13 Thread Josh Bush
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

[jQuery] Re: Got Grid? Here's a large plugin effort.

2007-08-13 Thread Josh Bush
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

[jQuery] Got Grid? Here's a large plugin effort.

2007-08-12 Thread Josh Bush
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

[jQuery] Re: Fastest method to create table rows

2007-08-08 Thread Josh Bush
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

[jQuery] Re: Fastest method to create table rows

2007-08-08 Thread Josh Bush
> 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

[jQuery] Re: Fastest method to create table rows

2007-08-08 Thread Josh Bush
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

[jQuery] Re: Fastest method to create table rows

2007-08-08 Thread Josh Bush
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

[jQuery] Re: Fastest method to create table rows

2007-08-08 Thread Josh Bush
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

[jQuery] Re: Fastest method to create table rows

2007-08-07 Thread Josh Bush
-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

[jQuery] Re: Fastest method to create table rows

2007-08-07 Thread Josh Bush
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

[jQuery] Re: Fastest method to create table rows

2007-08-07 Thread Josh Bush
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

[jQuery] Re: jEditable custom inputs

2007-08-07 Thread Josh Bush
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

[jQuery] Fastest method to create table rows

2007-08-07 Thread Josh Bush
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

[jQuery] Re: Announce: Masked Input Plugin 1.0

2007-07-27 Thread Josh Bush
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.

[jQuery] Re: Announce: Masked Input Plugin 1.0

2007-07-26 Thread Josh Bush
+/- 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

[jQuery] Re: alternate next() behavior

2007-07-26 Thread Josh Bush
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

[jQuery] Re: Announce: Masked Input Plugin 1.0

2007-07-26 Thread Josh Bush
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

[jQuery] Announce: Masked Input Plugin 1.0

2007-07-25 Thread Josh Bush
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

[jQuery] Re: alternate next() behavior

2007-07-25 Thread Josh Bush
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

[jQuery] alternate next() behavior

2007-07-25 Thread Josh Bush
.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

[jQuery] Intensive CPU + Animated GIFS

2007-07-20 Thread Josh Bush
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 $

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Josh Bush
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!

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-13 Thread Josh Bush
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

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Josh Bush
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 >

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Josh Bush
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

[jQuery] Re: Interested in porting another DOM creation plugin?

2007-07-12 Thread Josh Bush
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

[jQuery] Re: how can I prohibit from users pasting content into text boxes?

2007-07-05 Thread Josh Bush
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

[jQuery] Re: attaching events to large table

2007-07-05 Thread Josh Bush
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

[jQuery] attaching events to large table

2007-07-05 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin RC3

2007-07-03 Thread Josh Bush
> 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

[jQuery] Masked Input Plugin RC3

2007-07-02 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin RC2

2007-06-29 Thread Josh Bush
: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

[jQuery] Re: Naming Conventions

2007-06-29 Thread Josh Bush
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

[jQuery] Naming Conventions

2007-06-28 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin RC2

2007-06-28 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin RC2

2007-06-28 Thread Josh Bush
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

[jQuery] Masked Input Plugin RC2

2007-06-27 Thread Josh Bush
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

[jQuery] Masked Input Plugin RC1a

2007-06-22 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin RC1

2007-06-22 Thread Josh Bush
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

[jQuery] Re: Attn. developers. Speed of getElementById

2007-06-22 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin RC1

2007-06-22 Thread Josh Bush
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. > >

[jQuery] Re: Masked Input Plugin RC1

2007-06-22 Thread Josh Bush
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: > > &

[jQuery] Re: Masked Input Plugin RC1

2007-06-22 Thread Josh Bush
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

[jQuery] Masked Input Plugin RC1

2007-06-21 Thread Josh Bush
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

[jQuery] Re: Masked Input Plugin Beta 2a

2007-06-19 Thread Josh Bush
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

[jQuery] Re: New Plugin Repository

2007-06-19 Thread Josh Bush
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

[jQuery] Masked Input Plugin Beta 2a

2007-06-13 Thread Josh Bush
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/

[jQuery] Re: Masked Input Plugin Beta 2

2007-06-13 Thread Josh Bush
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

[jQuery] Re: I am a robot

2007-06-13 Thread Josh Bush
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.

[jQuery] Re: Masked Input Plugin Beta 2

2007-06-13 Thread Josh Bush
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 "

[jQuery] Re: Masked Input Plugin Beta 2

2007-06-13 Thread Josh Bush
[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

[jQuery] Re: Masked Input Plugin Beta 2

2007-06-12 Thread Josh Bush
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: > > > >

[jQuery] Masked Input Plugin Beta 2

2007-06-12 Thread Josh Bush
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

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
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

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
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

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
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'

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
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

[jQuery] Re: val() and change()

2007-06-12 Thread Josh Bush
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

[jQuery] val() and change()

2007-06-12 Thread Josh Bush
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

[jQuery] Re: Dynamically loading javascipt .js files?

2007-06-06 Thread Josh Bush
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: > > >

[jQuery] Re: Watermark Input Plugin Beta 1

2007-06-01 Thread Josh Bush
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

[jQuery] Re: Watermark Input Plugin Beta 1

2007-06-01 Thread Josh Bush
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

[jQuery] Re: Watermark Input Plugin Beta 1

2007-06-01 Thread Josh Bush
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

[jQuery] Re: Watermark Input Plugin Beta 1

2007-06-01 Thread Josh Bush
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

[jQuery] Re: Watermark Input Plugin Beta 1

2007-06-01 Thread Josh Bush
Sorry that I messed up the URL, the project is located at: http://digitalbush.com/projects/watermark-input-plugin