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 6 of 6
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts

    set to ignore errors

    is there anyway to set my code in javascript to ignore errors
    I have an error that comes up on ie but everything workes fine and i can't find the source of the error -- can i tell the browser to ignore it?

  • #2
    New Coder
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    52
    Thanks
    0
    Thanked 6 Times in 6 Posts
    it'd be better to fix the error, since if theres an error, you messed up somewhere.

    What does the error say?

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts
    the problem is i have mutliple jquery scripts including and it's causing an error i can't find but doesn't seem to affect anything working

  • #4
    Regular Coder
    Join Date
    Mar 2006
    Posts
    726
    Thanks
    35
    Thanked 132 Times in 123 Posts
    You want someone to tell you its ok to publish code when it throws an error for half the users?

    Sure, why not.

    You can ignore error messages, but that doesn't magically erase the errors.
    Errors are like plumbing leaks- they may seem insignificant, but they always get worse, not better, with time.
    And the longer you ignore them, the harder it is to remember what the code does when it is working correctly.
    Last edited by mrhoo; 07-14-2010 at 04:39 PM.

  • #5
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts
    so there is no way to do on error resume next in javascript

    i'm not so concerned about the error as it all works but i don't want users to see it

  • #6
    Regular Coder
    Join Date
    Mar 2006
    Posts
    726
    Thanks
    35
    Thanked 132 Times in 123 Posts
    You can resume without throwing the error to the user
    by catching it with a try/catch block, but you need to know the code that throws the error.

    If it is not obvious, use a debugger.


  •  

    LinkBacks (?)


    Posting Permissions

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