SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript Polling Issue

    Hi All,

    I come to you in need of help. If anyone could help me out, I'd greatly appreciate it.

    Problem:
    When I click "End", it doesn't destroy (lack of a better word) the setTimeout function.
    You'll notice the json file is called, at some point 6 times

    Note:
    I left a console.log in the code to show you the issue I speak of (so ensure you have your console open).

    Requirements:
    By default the json file should load once, then upon clicking "Start", the json file needs to be called (every x secs) until "End" is clicked (in which case the polling will stop).
    Last edited by Pullo; Apr 11, 2014 at 00:07. Reason: Removed URL


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •