Topic: To many page << new Effect.MoveBy at once?

I have:

render :update do |page|
      page << "new Effect.MoveBy('polar1av',0, #{resform})"
      page << "new Effect.MoveBy('polar2av',0, #{resfocus})"
      page << "new Effect.MoveBy('polar3av',0, #{resmovement})"
end

But it reacts kind of slow. Must be that JavaScript gets to busy with three MoveBy at once, right? How should I deal with this?

The divs are very very light (small markers on a scale x 3).

Re: To many page << new Effect.MoveBy at once?

Slow? Do you mean to begin with? If so, its just the time it takes to run the XHR and return the instructions. With any XHR call your going to have something like that.

Re: To many page << new Effect.MoveBy at once?

shadow wrote:

Slow? Do you mean to begin with? If so, its just the time it takes to run the XHR and return the instructions. With any XHR call your going to have something like that.

I see. Not sure what you mean by XHR though.

Re: To many page << new Effect.MoveBy at once?

XMLHttpRequest

Re: To many page << new Effect.MoveBy at once?

shadow wrote:

XMLHttpRequest

Aha. Thanks :-)