[solved] Need some regex help...
Posted: Tue Mar 22, 2005 10:04 am
I have a div that has an onBlur event attached to it but my event keeps running when I mouseover <p>'s and <a>'s etc. This is obvious to me why, but I dont' want it to happen.
I need to prevent that from happening so I came up with using another event on all of those "child" elements that calls event.cancelBubble = true;. I know I know...IE only, but that's the only crowd I need to worry about here.
My issue then becomes adding an onmouseout event to those elements (that are dynamically inserted to my div). I wanted to just do a replace for all ">" with "onMouseOut="event.cancelBubble=true;" but that would also grab the end tags as well. So I'm goign to need some kind of regex to ensure that I don't replace the ">" on the end tags. But as you may alraedy know...Feyd I knwo you do, I'm a total friggin' regex wannabe.
can someone help me out with this?
thx,
Burr
I need to prevent that from happening so I came up with using another event on all of those "child" elements that calls event.cancelBubble = true;. I know I know...IE only, but that's the only crowd I need to worry about here.
My issue then becomes adding an onmouseout event to those elements (that are dynamically inserted to my div). I wanted to just do a replace for all ">" with "onMouseOut="event.cancelBubble=true;" but that would also grab the end tags as well. So I'm goign to need some kind of regex to ensure that I don't replace the ">" on the end tags. But as you may alraedy know...Feyd I knwo you do, I'm a total friggin' regex wannabe.
can someone help me out with this?
thx,
Burr