0
요청이 진행되는 동안 div를 이동하려고 시도하면 완료시 div가 원래 위치로 다시 이동합니다. 그러나 각 요청에 대해서만 일어납니다. 여기에 코드prototype PeriodicalExecuter move div effect
new PeriodicalExecuter(function() {
new Effect.Move('content', {
x:0,
y:15,
duration:1
});;
new Ajax.Updater('content','/getcontent', {
asynchronous:true,
evalScripts:true,
onComplete:function(request, json) {
new Effect.Move('content', {x:0,y:-15,duration:1});
},
insertion:Insertion.Top,
requestHeaders:['X-Update', 'content']
})
}, 5)