Prototype Ajax.PeriodicalUpdater problem

G

gzerphey

I hope you guys can help me on this. I have two functions. The first
calls a periodical updater and does it quite successfully. The second
is meant to stop said updater. It however fails when I call it. It
just wont stop the updater. I'm sorry if I am missing something
stupid.

Thank you in advance,

function foobar(){
var searchvar = "ipadd=" + $F(ip) + "&commstring=" + $F(snmpstr) +
"&snmpelem=" + $F(RSL);
var opt = {
method: 'post',
parameters: searchvar,
frequency: 1
}
new Ajax.PeriodicalUpdater('snmpResult','snmpsearch.php',opt);
}

function barbar(){
opt.updater.options.onComplete = undefined;
opt.stop();
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top