I just found this: http://www.quirksmode.org/js/events_order.html

Down the page it has this:

window.event.cancelBubble = true


On 6/20/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:

Christian,
I am not a 100% on what Event Bubbling is, I searched it, but still no
real idea.  But I am assuming you can do something like:

       var sayhi = function(e) {
           alert('hi');
           e.stopPropagation(); // also tried $('mybutton').unbind()
           $('#mybutton').unbind('click').click(saybye);  //  added
unbind('click')
       };

       var saybye = function(e) {
           alert('bye');
       };

       $(document).ready(
           function () {
               $('#mybutt').bind('click', sayhi);
           }
       );

On 6/20/07, Christian <[EMAIL PROTECTED]> wrote:
>
>
> On Jun 20, 1:44 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote:
> > Tried, return false in "sayhi"?
>
> Yep, no dice.  Thanks for the suggestion though.
>
> Christian
>
>


--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to