[jQuery] Re: selecting elements that match a regular expression

2009-09-16 Thread Steven Black
Try James Padolsey's Regex Selector plugin for jQuery http://james.padolsey.com/javascript/regex-selector-for-jquery/ **--** Steve On Sep 16, 9:34 pm, macsig sigbac...@gmail.com wrote: Hello guys, is there a way to select elements that match a regular expression? I have a set of divs with

[jQuery] Re: Easy show()/hide() Question

2009-09-15 Thread Steven Black
The problem is synchronicity. When you add an animation (like slow or fast) the animation process starts but, behind the scenes, subsequent lines of javascript continue to execute during the animation. When you need things in strict order, and you have an animation, use the callback, which will

[jQuery] Re: Intercept javascript event

2009-09-14 Thread Steven Black
One idea: have a look at the Aspect Oriented Programming plugin. See http://plugins.jquery.com/project/AOP and http://code.google.com/p/jquery-aop/ If this isn't exactly what you are looking for, then therin is code to pre- and post-hook existing events. I hope this helps. **--** Steve On

[jQuery] Re: code review for short snippet

2009-04-04 Thread Steven Black
p.s. I don't know what happen with my repeated original post. I must have gotten overzealous with the submit key. :p Note that, clicking More options, you can delete your posts. **--** Steve On Apr 4, 5:12 pm, John H realistinden...@gmail.com wrote: Ricardo, this is equally instructive.

[jQuery] Re: jQuery.each need extra check for object

2009-02-25 Thread Steven Black
Do you have a test case for this one? I have a hard-time imagining the scenario you describe when jQuery is invoked properly. I'm guessing that, in this particular situation, the object of discourse isn't actually a jWuery object. In other words, try $(myVar).each(...) instead of

[jQuery] Wrap tagless text fragments?

2008-08-28 Thread Steven Black
I develop and host wikis where users enter free-form text, and my server-side parsers create WISIWYG HTML from this. Of course, users can, and do, submit almost anything, and on the server-side I do a pretty good job of marking it up properly. But addressing edge-cases makes the server-side

[jQuery] Re: Wrap tagless text fragments?

2008-08-28 Thread Steven Black
(this.nodeValue)) Danny On Aug 28, 2:30 pm, Steven Black [EMAIL PROTECTED] wrote: I develop and host wikis where users enter free-form text, and my server-side parsers create WISIWYG HTML from this. Of course, users can, and do, submit almost anything, and on the server-side I do

[jQuery] Re: Wrap tagless text fragments?

2008-08-28 Thread Steven Black
= $('.container'); newObj.children().remove(); newObj.text(); // returns orphaned text node. On Aug 28, 12:30 pm, Steven Black [EMAIL PROTECTED] wrote: I develop and host wikis where users enter free-form text, and my server-side parsers create WISIWYG HTML from this. Of course, users can, and do

[jQuery] Re: Can anyone explain the jitter in my website using the slide effect?

2008-08-27 Thread Steven Black
Remy Sharp's explanation may serve you well; It's all about padding. http://jqueryfordesigners.com/animation-jump-quick-tip/ Animation Jump - quick tip **--** Steve On Aug 27, 1:31 am, Eric [EMAIL PROTECTED] wrote: I am building a website and using the slide effect to transition objects

[jQuery] Re: Get heights of multiple divs

2008-08-27 Thread Steven Black
In addition to what MorningZ has said, see the vjustify plugin: http://michael.futreal.com/jquery/vjustify The nugget there is to use the offsetHeight property, which factors-in margins, padding, etc. **--** Steve On Aug 27, 7:25 am, james_fairhurst [EMAIL PROTECTED] wrote: Hoepfully a