[Xsltforms-support] Can you use dispatch to invoke a trigger?
Brought to you by:
alain-couthures
From: Mark L. <tin...@gm...> - 2014-03-03 14:09:04
|
Hi all, Can you ‘call’ a trigger by using <xf:dispatch/> ? Say I have a <xf:repeat/> list of items with Next and Prev buttons at the bottom. It’s a pretty long list so I want to duplicate the buttons at the top as well but I don’t really want to duplicate the event code in these, I just want to get them to activate their respective originals. I’ve tried this sort of code below but no luck so far. <xf:trigger id=“next_parent"> <xf:label>Next Page</xf:label> <xf:action ev:event=“DOMActivate”> <!— lots of stuff here —> </xf:action> </xf:trigger> <!— this button just ‘calls’ it’s parent <xf:trigger id=“next_dummy"> <xf:label>Next Page</xf:label> <xf:action ev:event=“DOMActivate”> <xf:dispatch id=“next_parent” ev:event=“DOMActivate”/> </xf:action> </xf:trigger> Rgds, Mark Lawson |