hi,
are you waiting for user input in any of the containers?
If not it is not necessary to switch the z- index.
Just either switch the visibility (visilbility:hidden; ->
visibility:show) or set the opacity as suggested before.
hope that helps
Bastian
On 9/4/07, trigan <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
> >
>
--
--
spread the word ... see www.browsehappy.com ;o)
Calvin: Weekends don't count unless you spend them doing something
completely pointless.
Join the Greater IBM Connection (http://www.xing.com/premiumgroup-6291.d26b7d)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---