Hello, Yann-Erwan
You explain this well. This really could be what's happening.
Currently I overcame this, replacing the event handler with function,
that calls window.setTimeout(originalFunction, 0). Now
document.onclick is properly called and then also original function is
handled. It is possible also to save the original event data, so the
only problem is that document.onlcick is now fired before the function
that was supposed to be the original inner tag trigger. But in my
design, that makes no difference.
Quote:
What about adding the listener on the parent node, or change only the
node value, not the node itself? |
In my actual design, the listener tag is much more levels deeper, so
these approaces don't help here. I am working on standardized
framework for client-side DHTML controls, that may have popups and
then some clicking is done on those popups. I handle the clicks on the
popups, but this action mey requere redrawing of the popup HTML, so
there is this on-the-edge event thing. I need to handle
document.onclick, because that helps to determine wether user has
clicked outside of active popup, and thus close it.
Thanks,
Pavils