[jifty-devel] Show/Hide region with effects
jesse at bestpractical.com
Mon May 7 16:57:02 EDT 2007
On May 7, 2007, at 3:21 PM, Dobrica Pavlinusic wrote:
> On Mon, May 07, 2007 at 08:57:07AM -0400, Jesse Vincent wrote:
>>> require to
>>> that in
>>>> What I was breaking my head about the last few days: Is there an
>>>> way of applying an effect _before_ doing an update to a region?
>>>> Technically this is not a problem, using the 'afterFinish' hook
>>>> of an
>>>> effect to fire the region update. To allow this, there would be
>>>> a need to
>>>> keep something like a TODO list inside the "Jifty.update()"
>>>> method that
>>>> triggers its next item by a final hook of the previous item.
>>>> concerning the same region would have to run sequentially,
>>>> regions could run in parallel.
>> I believe yves just contributed a 'beforeclick' handler into Jifty.
> I *love* beforeclick. I got chep AJAXy effect by hiding two
> elements on page using
> Element.hide when user select delete :-)
> But, it seems that confirm is triggered after beforeclick, which
> just seems
> wrong. In my case, I hide results with beforeclick and *than* ask
> user "are you sure?".
> Or do we need afterclick which is triggered after confirm?
I suspect that "beforeclick" should get renamed and we'll want
another hook after the confirm. To help figure out good names, would
you be willing to show us the code where you're using a confirm and
the beforeclick handler?
> Dobrica Pavlinusic 2share!2flame
> dpavlin at rot13.org
> Unix addict. Internet consultant. http://www.rot13.org/
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070507/f447b183/PGP.pgp
More information about the jifty-devel