[jQuery] Re: jQuery 1.3 live not working correctly

2009-01-19 Thread John Resig

Do you have an example anywhere that we can look at? Also, could you
post a follow-up to the jquery-dev list? Thanks.
http://groups.google.com/group/jquery-dev

--John



On Mon, Jan 19, 2009 at 7:25 AM, Walther waltherl...@gmail.com wrote:

 I am having an issue with the new live events in jQuery 1.3.
 Specifically I am having an regarding event bubbling. I have a a list
 of items, each item element looks like : liabla/a/li. When the
 user clicks on the li element one thing should happen, and when the
 user clicks on the a element another thing should happen (The css
 styles are such that the user can easily see what to do). I will be
 dynamically adding and removing items from the list, hence the reason
 to use live events.

 When I use live events and click on the a element the li elements
 click handler is also fired even though I am using the stopPropagation
 function (and I've tried return false as well). If I use the normal
 bind function then it works 100%.

 Is there a possible bug in the live events implementation, or am I
 missing something?

 Walther.



[jQuery] Re: jQuery 1.3 live not working correctly

2009-01-19 Thread Walther

I've posted on jquery-dev and will carry on the discussion there.

Thanks
Walther

On Jan 19, 6:53 pm, John Resig jere...@gmail.com wrote:
 Do you have an example anywhere that we can look at? Also, could you
 post a follow-up to the jquery-dev list? 
 Thanks.http://groups.google.com/group/jquery-dev

 --John

 On Mon, Jan 19, 2009 at 7:25 AM, Walther waltherl...@gmail.com wrote:

  I am having an issue with the new live events in jQuery 1.3.
  Specifically I am having an regarding event bubbling. I have a a list
  of items, each item element looks like : liabla/a/li. When the
  user clicks on the li element one thing should happen, and when the
  user clicks on the a element another thing should happen (The css
  styles are such that the user can easily see what to do). I will be
  dynamically adding and removing items from the list, hence the reason
  to use live events.

  When I use live events and click on the a element the li elements
  click handler is also fired even though I am using the stopPropagation
  function (and I've tried return false as well). If I use the normal
  bind function then it works 100%.

  Is there a possible bug in the live events implementation, or am I
  missing something?

  Walther.