View Full Version : set to ignore errors

07-14-2010, 10:17 AM
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?

07-14-2010, 11:30 AM
it'd be better to fix the error, since if theres an error, you messed up somewhere.

What does the error say?

07-14-2010, 11:35 AM
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

07-14-2010, 04:33 PM
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.

07-14-2010, 04:49 PM
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

07-14-2010, 05:14 PM
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.