Hi,

 

I just started using jQuery recently. Once problem I can’t seem to find a solution to event bubbling in Opera 9.02. Take a look at http://temp3.netphoria.com/jquery/admin-edit.asp?albumId=1 to follow along.

 

This page will allow you to edit individual images and their text. When you click on an item the form for that item appears. Clicking the Cancel button should cause the form to be removed. This works for images but not for text (in Opera 9.02; FF and IE are fine). I have found that clicking the Cancel button for the text form causes the text form to be removed but then added again (I used an alert() to see this in action). The only reason I can think of for this is that the text form is appended as a child of the text element (<p>), and the click event is passed from button object up to the rest of the DOM. The image form is added after the image element, so the click event is not passed up the DOM.

 

So, my question is, “How do I prevent Opera from bubbling an event up the DOM?”

 

Things I have tried:

 - Returning False/True from the function that handles the Cancel button’s click event.

 - Removing the text form from the flow of the document by using absolute positioning.

 

Thanks for any help!

 

Aaron Ullom

Netphoria, Inc.

 

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to