Stop event bubbling in DSP

Author: philippe.grangeray@agfa.com (Philippe)

Hi, when a DSP is nested in another DSP the event is bubbling to is parent. A workaround to avoid this, is to manage this with javascript in the webtrigger: ; -------------------- ; DSPChildren webtrigger onclick javascript stopBubbling = true; // Global JavaScript variable to stop bubbling event // ... // do my job // ... stopBubbling = false; // The event is available again; endjavascript end ; -------------------- ; -------------------- ; DSPParent webtrigger onclick javascript if (stopBubbling) return; // Don't care of the event // ... // do my job // ... endjavascript end ; -------------------- This should done with a modifier in the header of the trigger (stopbubbling for instance) : ; -------------------- trigger onclick publicweb stopbubbling ;... end ; -------------------- webtrigger onclick stopbubbling javascript //... endjavascript end With this, we don't have to manage the event bubbling in the parent DSP.

This page has no comments.