Dear Stackoverflow;
Can you provide some good reading material on event-bubbling, especially in regards to the Yahoo User-Interface libraries (YUI) ?
Dear Stackoverflow;
Can you provide some good reading material on event-bubbling, especially in regards to the Yahoo User-Interface libraries (YUI) ?
Even-bubbling should not be a big issue. Container handles those events raised by child controls.
<script type="text/javascript">
function doit() {
alert("something...");
}
</script>
<div onclick="doit()">
<input type="button" value="one"/>
<input type="button" value="two"/>
</div>
Maybe not exactly what you're looking for, but Christian Heilmann (Developer Evangelist at Yahoo) has written some awesome stuff on event delegation using event bubbling and YUI.