PDA

View Full Version : Mini Mods - BT - Hide internet explorer errors


BlackThorn
04-08-2010, 10:00 PM
May be, yall know, Internet explorers the bottom of the page say: "finished but page get errors." And then you've very angry!

Well, you can close it!

But How?

Well, Open your headinclude template and [B]add the BOTTOM of codes this code;

<script LANGUAGE="JavaScript">function CC_noErrors() {return true;}window.onerror = CC_noErrors;</script>

If you use that, then please mark as installed :)

bing11
04-09-2010, 12:18 PM
nice thank you

avsunforum
04-12-2010, 01:43 PM
thanks men

asd_ra7la
04-30-2010, 06:39 AM
nice thank you install in نتائج الامتحانات (http://vb.ra7la.com)

RTMdotORG
06-19-2010, 08:12 PM
Yeah, but wouldn't you like to fix the error instead of mask it?

Xtrigit
06-25-2010, 02:36 PM
Why would you want to mask an error? why not just fix it?

Sajeth
06-25-2010, 11:13 PM
Because it wasnt a "real" error but more likely another Internet Explorer malfunction...

BlackThorn
06-25-2010, 11:17 PM
Because it wasnt a "real" error but more likely another Internet Explorer malfunction...

Thank you :rolleyes:

RTMdotORG
06-27-2010, 03:02 AM
Not a "REAL" error?
That doesn't make sense, I'm not downing the developer because I encourage everyone who post mods:up:, but something like this could be bad. What if you use this, then you get a "REAL" error? You wouldn't even know it was occurring because you have the error unable to be showed.

Not everyone on vb.org is an experienced user and if some were to see an error at the bottom left of their browser, and then saw this, that user would think it is valid to use this code. All I'm saying is I would add to your description that this might not be the right path to take. After reading this thread I see that some users are ignorant and think there are "FAKE" errors , so I guess this mod is good for them. :down:

Just my opinion I guess :confused:

Sajeth
06-27-2010, 10:34 AM
Your long story short: you have very little experience in optimizing code for all browsers and web development in general.
First, YES, Internet Explorer does a lot of strange things, one of those strange things is giving useless error messages when the code in fact is valid.
Second, NO, there is not the slightest need for such messages in a live environment.
Third, if you get a "real error", propably the last thing you need to notice it is getting another MIE error message. And in debug mode, those errors are shown anyways.

Mike08
07-16-2010, 09:35 AM
Thanks ;)

BirdOPrey5
07-16-2010, 10:41 AM
Tagged this but personally have never seen IE return an error when there wasn't one... still may come in handy one day.

Hell Bomb
09-27-2010, 06:13 PM
Your long story short: you have very little experience in optimizing code for all browsers and web development in general.
First, YES, Internet Explorer does a lot of strange things, one of those strange things is giving useless error messages when the code in fact is valid.
Second, NO, there is not the slightest need for such messages in a live environment.
Third, if you get a "real error", propably the last thing you need to notice it is getting another MIE error message. And in debug mode, those errors are shown anyways.

Hate to thread dig, but must give me $0.02 but i agree with you to an extent, As we all know IE is a poor excuse of a browser, but I have found this useful. My newest theme has a small error with the javascript because it does not work on internet explore correctly it has a built in condition to make it work with IE, but IE stil gives an error even though the javascript adds compatibility for IE. IE reads the first part of the script, understands it can't render it correctly, then prints an error, even though later in the script the IE errors are fixed. The javascript works perfect all the way back to IE6 but still shows and error, thus this is a useful script. But for the common problem it's a lot better to just fix the error.

BirdOPrey5
09-27-2010, 08:12 PM
Does anyone know if this would hide errors on other browsers too?