PDA

View Full Version : frustrating checkbox problem



shadow_hunter
02-11-2008, 10:58 PM
******I solved my problem*****
I Used
function cancelBubbling(e)
{
if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
}

to stop the propagation of the event which was returning false in the menu's click handler

******I solved my problem*****


I am using the accordion menu from:
http://dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm

and I have a checkbox on it but it refuses to check when I click it. I think the problem has something to do with the checkbox's parent also having an onclick on it. Maybe the check action is being done twice? To solve this I think I would need to prevent the capturing and bubbling of the event but I can't figure out how to stop the capturing. I also want to prevent the menu from opening up when the checkbox is clicked.

Ive been stuck on this for a while so any suggestions would be greatly appreciated.
Thanks - Micah