i want to transpose the 'foo_id', that means i want do fade out the
old one and fade in the new one at the same position.
so i'd suggest that the new container has to be first positioned
below (zIndex) the old one. After that the old container could be
faded out.
Your example would (i suggest - have to try it) delete the old one,
(with a flickering as a result) and than fade in the new one...
On 4 Sep., 12:55, Tobie Langel <[EMAIL PROTECTED]> wrote:
> Why would you need to absolutize and clone position ?
>
> Something like this should do the trick (untested)
>
> new Ajax.Updater('foo_id', url, {
> onSuccess: function() {
> $('foo_id').setOpacity(0).appear();
> }
>
> })
>
> On Sep 4, 10:14 am, trigan <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > i wonder if there is a simple way to have the following functionality:
>
> > * Ajax.updater calls a partial html for 'foo_id'
> > * the new content will Fade in at 'foo_id'
>
> > For now the only way i found was to update a hidden div, absolutize,
> > clone position and than Fade.
>
> > Is ther a build in way that i am missing ??
>
> > 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
-~----------~----~----~----~------~----~------~--~---