Script.aculo.us

Effect Callbacks

Callback since Description
beforeStart V1.0 Called before the main effects rendering loop is started.
beforeUpdate V1.0 Called on each iteration of the effects rendering loop, before the redraw takes places.
afterUpdate V1.0 Called on each iteration of the effects rendering loop, after the redraw takes places.
afterFinish V1.0 Called after the last redraw of the effect was made.
function myCallBackOnFinish(obj){
  alert("the Element's id the effect was applied to is :" + obj.element.id);
}
function myCallBackOnStart(obj){
  alert("the Element object the effect will be applied to is :" + obj.element);
}

José M. Vidal .

4 of 9