[jQuery] Re: Improvement to delegate plugin to simulate bubbling

2008-09-17 Thread Matt Kruse
On Sep 17, 11:30 am, Nathan Bubna <[EMAIL PROTECTED]> wrote: > I like this.  And really, isn't click the only event that you would > really need this bubbling for?  Couldn't you just check the event type > and only bubble on click, so that your plugin runs fine with fast- > firing events too? Wel

[jQuery] Re: Improvement to delegate plugin to simulate bubbling

2008-09-17 Thread Nathan Bubna
I like this. And really, isn't click the only event that you would really need this bubbling for? Couldn't you just check the event type and only bubble on click, so that your plugin runs fine with fast- firing events too? On Sep 16, 12:17 pm, Matt Kruse <[EMAIL PROTECTED]> wrote: > I've been w

[jQuery] Re: Improvement

2008-03-25 Thread jaredmellentine
Brad: I created a sample page for you here: http://design.mellentine.com/wp-content/uploads/2008/03/toggle.html It uses a hash for the href and classes to assign the events. It may not be much less code right now, but it will continue to work regardless of how many toggles and divs you have. S

[jQuery] Re: Improvement

2008-03-25 Thread ripple
Try the "this" keyword blg002 <[EMAIL PROTECTED]> wrote: I'm relatively new to jQuery & Javascript and was wondering if someone could help me condense my code a little. What I have going on is... multiple div's with different info in them & an ordered list of links. Only one of the divs

[jQuery] Re: Improvement

2008-03-25 Thread ripple
Experiment with it. Try a class name. blg002 <[EMAIL PROTECTED]> wrote: I'm relatively new to jQuery & Javascript and was wondering if someone could help me condense my code a little. What I have going on is... multiple div's with different info in them & an ordered list of links. Only