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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Posts
    243
    Thanks
    14
    Thanked 2 Times in 2 Posts

    stop() function?

    I want to stop in the middle of a function if a certain coindition is met, my first try of how to fix this ( moveThis.stop() ) magically worked. Until I discovered that FF gives an error:

    moveThis.stop is not a function.


    I tried searching for the correct usage but I found next to nothing...


    How should this be used? I want to stop the funcion moveThis() somewhere in the middle.

  • #2
    Regular Coder
    Join Date
    May 2007
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What about to use:

    Code:
    return;
    ?
    Forum for webmasters and developers
    http://www.htmlfrenzy.com
    Are you an IT expert? Join our Reward system
    www.htmlfrenzy.com/reward-system.php

  • #3
    Regular Coder
    Join Date
    Jan 2006
    Posts
    243
    Thanks
    14
    Thanked 2 Times in 2 Posts
    Ah, worked perfectly, thanks!

    I did not know return actually stops a function, I always used it at the end of a function to return a value.


    What about the stop function though, is it still in use, or whats the deal with that? (just curious)

  • #4
    Regular Coder
    Join Date
    May 2007
    Posts
    118
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am not sure if is it possible stop the function Kirl... I have no idea
    Last edited by smalldog; 05-18-2007 at 02:26 PM.
    Forum for webmasters and developers
    http://www.htmlfrenzy.com
    Are you an IT expert? Join our Reward system
    www.htmlfrenzy.com/reward-system.php


  •  

    Posting Permissions

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