How do I apply a stop to a running periodic updater?
The below does not stop it!
var counter;
function periodic()
{
var myAjax = new Ajax.PeriodicalUpdater
('meny','../TJx/meny.php'+'?rand='+new Date().getTime(),{method:
'post',frequency:10.0,decay:2, onSuccess: function(transport)
{
new Ajax.Updater('pagang','../TJx/pagang.php');
counter=counter+1;
if(counter==120) {
this.myAjax.stop();
counter=0;
new Ajax.Updater('meny','../TJx/meny.php');
} }}
best regards
jan-erik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---