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




------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to