[thelist] preventing onClick events firing
ben morrison
morrison.ben at gmail.com
Fri Oct 20 10:50:15 CDT 2006
On 20/10/06, Matt Warden <mwarden at gmail.com> wrote:
> On 10/20/06, ben morrison <morrison.ben at gmail.com> wrote:
> > Also I would like to include an area where the onclick event doesn't
> > execute, so the user can select more options:
> >
> > ---------------------------
> > | onclick here |
> > | ----------------- |
> > | | override | |
> > | ----------------- |
> > ---------------------------
> >
> > I've been using onclick= function() {}
> >
> > I'm guessing that I should use addListeners as this has to do with
> > events and bubbling, this is something i've never used and slightly
> > confused by it.
>
> So are most people, because it's not very sane across platforms.
>
> http://developer.yahoo.com/yui/docs/event/YAHOO.util.Event.html#stopPropagation
Changed it to addEvents and it now works fine, removed onclick=
function and added events and listeners (from Stuart Langridge's
book).
Trying to avoid using YAHOO.util library untill I have a better grasp
of the fundamentals.
cheers.
ben
--
Ben Morrison
More information about the thelist
mailing list