[jifty-devel] Show/Hide region with effects

Jesse Vincent 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:
>>> There would be a solution on the JavaScript side which would  
>>> require to
>>> change the whole JavaScript logic in Jifty. I already thought on  
>>> that in
>>> december:
>>>> What I was breaking my head about the last few days: Is there an  
>>>> elegant
>>>> 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.  
>>>> Everything
>>>> concerning the same region would have to run sequentially,  
>>>> different
>>>> 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/ 
> ~dpavlin
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
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 mailing list