I'd suggest using the Ajax.Request instead, Ajax.Updater is a
convenience class to handle easy updates, when you start thinking
about behavior you have more control over the transition with
Ajax.Request.

All Ajax.Updater is doing for you is stuffing the responseText in the
innerHTML property of the element you send to the constructor. So just
make sure to carry this feature over to the success handler for
Ajax.Request.

onSuccess : function(transport){

                          new Effect.Fade("myDiv", { afterFinish :
function(fx){
 
fx.element.innerHTML = transport.responseText;
 
fx.element.appear()});

                    }

On Sep 5, 4:09 am, trigan <[EMAIL PROTECTED]> wrote:
> Hi Walter,
>
> > If you have two images, one below the other, and you fade the uppermost
> > one, the bottom one will fade in perfectly. The top image acts as an
> > alpha mask for the bottom.
>
> Thank you for your confirmation. That is exactly the way i do it for
> now. But i wondered if there is a more generic and build in way.
> i'd suggest something like Ajax.Transposer('id','url', { leaveScene:
> new Effect...., enterScene: new Effect...., }) while all 'old' ids
> within the leaving Fragment will be prepended with 'old_'
>
> When i have finished my current project i'll try to write a piece of
> working code for this...
>
> Best
> T


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to