SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: disable javascript error
-
Apr 11, 2007, 01:05 #1
disable javascript error
Hello there,
is it possible to disable displaying a JavaScript Error in JavaScript?Words are weapons of Mass Destruction.
-
Apr 11, 2007, 01:39 #2
- Join Date
- Jun 2001
- Location
- Cape Town, South Africa
- Posts
- 548
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:window.onerror = function() { //alert("error"); return true; }
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.
-
Apr 11, 2007, 02:47 #3
- Join Date
- Apr 2007
- Posts
- 813
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
seems not working??
-
Apr 11, 2007, 02:58 #4
- Join Date
- Jun 2001
- Location
- Cape Town, South Africa
- Posts
- 548
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Tested in both IE7 and FF... works on my side... problem might be that your script falls over before it reaches the window.onerror event handler.... my advice is to add this script right at the top of your documents, in a seperate script block.
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.
-
Apr 11, 2007, 05:31 #5
- Join Date
- Jun 2001
- Location
- Cape Town, South Africa
- Posts
- 548
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sorry... wrong post
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.
-
Apr 16, 2007, 00:42 #6
- Join Date
- Jun 2001
- Location
- Cape Town, South Africa
- Posts
- 548
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Did you manage to get this working?
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.
-
Apr 16, 2007, 00:52 #7
- Join Date
- Jul 2006
- Location
- Thailand
- Posts
- 162
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Code:try { // Your code here. } catch (e) {};
-
Apr 16, 2007, 01:09 #8
- Join Date
- Jun 2001
- Location
- Cape Town, South Africa
- Posts
- 548
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yea... that's another idea... probably the better idea too... didn't think of that
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.
-
Apr 16, 2007, 01:11 #9
- Join Date
- Jun 2001
- Location
- Cape Town, South Africa
- Posts
- 548
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
then again... that would have to be applied around specific code... you wouldn't have a global error event handler.
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.
Bookmarks