[jifty-devel] How to do multiple onclick region actions

Alex Vandiver alexmv at bestpractical.com
Wed Feb 28 18:17:51 EST 2007


On Wed, 2007-02-28 at 17:04 -0500, jpollack at gmail.com wrote:
> How do I specify more than one region to 'onclick' in
> Jifty->web->link?  What I'm trying to do is have a link that onclick,
> does both a region replacement, and a refresh on a separate region.
> Or two replacements, or two refreshes, &c.  I looked through the
> documentation on how to do this, sorry if it's obvious and I missed
> it.

Just pass it an array ref:

            onclick   => [
                {   submit       => $action,
                    refresh_self => 1,
                },
                {   region       => "someplace else",
                    replace_with => "/fragments/newthing",
                },
            ]

 - Alex


More information about the jifty-devel mailing list