[jQuery] Re: Regular Expressions and jQuery

2009-06-13 Thread Orkan
PS. the correct phone number for your regex is, for example: (123) 456-7890 right? On Jun 12, 3:57 pm, John wrote: > Good call. > > Here are my changes. > > function validate_phone(value,alerttxt){ > >         var re = /^\(\d{3}\)\d{3}-\d{4}$/; >         alert(re); > >         if( $('input[name=

[jQuery] Re: Regular Expressions and jQuery

2009-06-13 Thread Orkan
I think you're looking for a test() method instead! match() is used to extract substrings from a given string. function validate_phone(value,alerttxt){ var re = /^\(\d{3}\)\d{3}-\d{4}$/; var ok = re.test($("input[name=unitContactPhoneNumber]").fieldValue ()); alert(re +

[jQuery] Re: New plugin announcement and review request - bullsEye

2009-06-11 Thread Orkan
$(document).ready(function(){ $('div#bullseye').bullseye({ 'use_rows':3, 'use_cols':3, }); }); try to remove the last comma from options obj. IE doesnt l

[jQuery] Re: Tabs Rotate Overlap

2008-09-12 Thread Orkan
btw. I played a bit with ui.effects on Tabs http://orkan.jaslo4u.pl/chili_toolbar/ On Sep 11, 11:31 am, Klaus Hartl <[EMAIL PROTECTED]> wrote: > You mean the animation? I'm sorry, currently not. Implement cross- > fading is on my list though... > > --Klaus > > On Sep 10, 3:57 pm, Chad Pry <[EMAI

[jQuery] Re: Scrolling: FF3 vs IE7

2008-09-06 Thread Orkan
Note: this is for vertical scrollbar if($.browser.msie && this.scrollWidth > this.offsetWidth) { $(this).css({"padding-bottom": "1.5em", "overflow-y": "hidden"}); } On Sep 5, 8:20 pm, "p.mohanasundaram" <[EMAIL PROTECTED]> wrote: > Any Solution?? > > On Jul 13, 10:00 am, NA <[EMAIL PR

[jQuery] Re: Question about the new jQuery website

2008-09-02 Thread Orkan
is it me or they have z-index issue in IE7 ? On Sep 1, 4:56 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote: > That's all correct about IE. In this case however, it seems like the > reason for the if/else is for the benefit of Mac Firefox 2. In that > browser, the weight of the text appears to alter

[jQuery] Re: Proper Memory Cleanup?

2008-06-21 Thread Orkan
it depends of the object (proto) type ;) simple object could be cleaned this way: myObj = null; As far as I know, it is used to avoid memory leaks in certain versions of IE 6, other browsers will do it automatically On Jun 20, 5:31 pm, Scott <[EMAIL PROTECTED]> wrote: > Can someone point me to

[jQuery] Re: Debugging $.getScript scripts

2008-06-21 Thread Orkan
Well, very often remote scripts are (at least) minified. it's a pain to debug such scripts. For debugging I use uncompressed local copy, so I wont help you in that matter, sorry. IMO, most programmers do it that way On Jun 21, 10:21 am, Hamish Campbell <[EMAIL PROTECTED]> wrote: > Nevermind - re

[jQuery] Re: How to replace one word with another when it's not alone in a cell?

2008-06-06 Thread Orkan
Hi, this should work: $("td:contains('comment')").each(function(){ $(this).text($(this).text().replace(/comment/, "vote")); }); PS. if you want to prevent html entities being stripped out, then use .html() instead: $(this).html($(this).html().replace(/comment/, "vote")); On Jun 5,