HTML:
----------------------------------------------------------------------------------------
<html>
<head></head>
<body onload="start()">
<div id="status"></div>
</div>
</html>
----------------------------------------------------------------------------------------
JAVASCRIPT:
----------------------------------------------------------------------------------------
function start(){
new Ajax.PeriodicalUpdater('status', 'url',
{
method: 'get',
parameters: "action_word=checkTimeout',
evalScripts: true,
frequency: 5,
decay: 1
});
}
function coolFunction(){
alert("I'm cool");
}
----------------------------------------------------------------------------------------
SERVER:
----------------------------------------------------------------------------------------
1st response 5 secs
<input type="hidden" name="timeout" value="" />
2nd response 10 secs
<input type="hidden" name="timeout" value="" />
3rd response 15 secs
<input type="hidden" name="timeout" value="" /
><script>coolFunction();</script>
100th response 500 secs
<input type="hidden" name="timeout" value="" /
><script>coolFunction();</script>
----------------------------------------------------------------------------------------
On the browser:
----------------------------------------------------------------------------------------
1st response 5 secs
nothing
2st response10 secs
nothing
3st response 15 secs
I see alert("I'm cool) 3 times
100th response 500 secs
alerts gets called 100 times
----------------------------------------------------------------------------------------
I know it doesnt make sense, but that's what I'm seeing. Maybe I'm
doing something stupid but why did it work in 1.5 and not work in 1.6.
On Jan 21, 9:12 pm, "Justin Perkins" <
justinperk...@gmail.com> wrote: