Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    setInterval("this.pizza()", 1000);

    I can't seem to find how to get this to work right.

    Code:
    this.pizza();
    this.interval=setInterval("this.pizza()",1000);
    It runs this.pizza() the first time when this portion of script is triggerered, but then it won't run it again. In my FF javascript console it says "this.pizza is not a function".

    Is there a way to get it to recognize it?

    Brett Bretterson

  • #2
    New Coder
    Join Date
    Aug 2005
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    never mind. I figured it out. I had to change it so pizza() took an object as a parameter and wasn't a function of an object.

    Brett Bretterson


  •  

    Posting Permissions

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