Terve,
Actually this was the first post I made here. I solved it this way:
--------snipp-------

Effect.Updater = Class.create();
Object.extend(Object.extend(Effect.Updater.prototype,
Effect.Base.prototype), {
  initialize: function(element) {
    this.element = $(element);
    var options = Object.extend({
      duration: 0.001,
      newContent: ''
    }, arguments[1] || {});
    this.start(options);
  },
  loop: function(timePos) {
    if(timePos >= this.startOn) {
      Element.update(this.element,this.options.newContent);
      this.cancel();
      return;
    }
  }
});

So I can now put this to the method I pass to onComplete of Ajax.Request

function reload_content(ajax){
  el = $('content');
  new Effect.Fade(el,{queue:'front'});
  new Effect.Updater(el,{newContent:ajax.responseText,queue:'end'});
  new Effect.Appear(el,{queue:'end'});
}
--------snapp-------

I hope that inspired Thomas, because he did add something for scriptaculous
1.6.5:
http://mir.aculo.us/2006/11/8/script-aculo-us-1-6-5

new Effect.Event({ afterFinish:function(){
  // do some code here
}, position: 'end' });



That’s what you want to do right?

Unfortunately I had problems with appearing fading appearing fading etc on
the same div over and over again (it seems that it slowed down and never
appeared back to 100%)

Hope that helps

.: Fabian

-----Original Message-----
From:
[EMAIL PROTECTED]
om
[mailto:[EMAIL PROTECTED]
groups.com] On Behalf Of Martin Bialasinski
Sent: Sonntag, 3. Dezember 2006 15:57
To: [email protected]
Subject: [Rails-spinoffs] Re: 3 prototype/scriptaculous effects in order on
one <div>


On 12/3/06, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] a écrit :
> > Effect.Fade,Ajax.Update,Effect.Appear

> The best way to go is element-scoped effect queues.

With Ajax.Update inbetween?



--~--~---------~--~----~------------~-------~--~----~
 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