On 30 avr, 16:42, Dave Methvin <[EMAIL PROTECTED]> wrote:
> > FWIW, the page is a bit heavy on markup
> > (document.getElementsByTagName('*') on my current test page yields
> > 1295), but this is not something I can help.
>
> You're finding and attaching a lot of event handlers then.
That would certainly be the case if I was to attach 1295 event
handlers - here I'm talking about =~ 70 handlers. But anyway:
> It might
> work better to use event delegation.
Yeps, that's what I was starting to consider. Unfortunately, I
probably won't have enough time to change this before the whole damn
thing goes into production. Well, at least I will have learned
something - first experience with heavy javascripting, so...
> Let the event bubble up so that a
> single handler can process events for all buttons on the page. The
> jQuery Listen plugin may help:
>
> http://plugins.jquery.com/project/Listen
>
> I haven't used it myself but it looks like what you need.
I'll give it a look when I'll have a couple hours of spare time.
Thanks for your time and support anyway.