Prototype Ajax.PeriodicalUpdater problem

Discussion in 'Javascript' started by gzerphey@4service.net, Nov 3, 2006.

  1. Guest

    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();
    }
    , Nov 3, 2006
    #1
    1. Advertising

  2. RobG Guest

    RobG, Nov 3, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. June Lee
    Replies:
    2
    Views:
    778
    Jim Cobban
    Apr 13, 2008
  2. Replies:
    9
    Views:
    163
    Thomas 'PointedEars' Lahn
    May 26, 2006
  3. Replies:
    2
    Views:
    87
    Yanick
    Nov 11, 2006
  4. Replies:
    3
    Views:
    252
  5. javascript fish
    Replies:
    0
    Views:
    155
    javascript fish
    Oct 11, 2008
Loading...

Share This Page