1 Reply Latest reply on Apr 19, 2008 9:49 PM by kglad

    Trying to reload data using setInterval

      Can someone tell me why the attached code will run & refresh as fast as it can for like 5-10 seconds, and then quit all together. All I'm trying to do is reload the data. Can someone tell me what I'm doing wrong?


        • 1. Re: Trying to reload data using setInterval
          kglad Adobe Community Professional & MVP
          1. the function in your setInterval should not have parenthesis.

          2. you should not be passing a variable to reloadPHP() because it accepts none.

          3. sendAndLoad() is a loadvars method and you have no loadvars instance.

          4. you should use a loadvars instance with an onLoad or onData handler to receive your data and to restart your interval for the next php call.