SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    setInterval() not working in FF2

    My application currently does not work in IE because of its lack of SVG support, but works flawlessly in FF3. For some reason however, the call to setInterval() does not work. View the demo at:

    http://cis.jhu.edu/~shanest/project/...dvection2.html

    Note you have to click "Generate Wave" each time to create the new graphic, where as it is done dynamically in FF3, as it should be. The start() function that is called by clicking the button is the exact same as setInterval().

    Any idea why this is the case?

  2. #2
    We're from teh basements.
    Join Date
    Apr 2007
    Posts
    1,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try leaving out the quotes in the start function:

    Code:
    function start(funcName, delay) {
    keepGoing = setInterval(funcName, delay);
    }

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks,
    << idiot sometimes


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
  •