Stop reporting javascript errors to end user

Running IIS on Windows 2003
Running multiple different sites
1 site is a basic java script page, it runs fine on its own
1 site runs the previous site inside its pages, errors are generated and end user has to click ok to continue
errors do not stop functionality

i am not interesting in fixing the problem, even the manufacturer says its un supported.

Goal: My goal is to modify my IIS settings in such a way where the errors won't be delivered to the end user.

i 'think' this can be done based on the settings i've seen in IIS, however i do not 'know' if this can be done, or how to.

Thanks for the help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JavaScript is a client-side scripting language.  Those errors cannot be disabled from the server.  Users can modify their Internet Explorer/Firefox settings so that the dialog box doesn't pop up, but they will still be notified by an icon at the lower corner.

What errors are generated?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
funnymanmikeAuthor Commented:
thats the problem though, beacuse site1 is being loaded into site2, the notification does not go in the lower corner. it is ignoring all the rules.

g_objXMLTempData.documentElement is null or not an object, Code 0,
is the error
The long and short of it is that you cannot prevent the error dialog by changing a setting on the server.

What do you mean by "site1 is being loaded into site2"?  Are you talking about an iframe, or some sort of server-side merge?

That error means that g_objXMLTempData is not available.  Perhaps you are trying to access it on site2, even though it only exists in site1?  Just a guess.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

funnymanmikeAuthor Commented:
its hard to explain, basically the primary site is just a CRM, it can load custom 'tabs' that we point to other sites, ie google and what not. well site2 is a part of the crm that just shows who is all logged into the crm.

both work fine independently, once we add this status page as a tab, it generates these error as something someone has to click on. if the primary crm generates an error, it just shows up in the bottom corner like normal.

both are located on the same server

manufacture has washed their hands of it saying its not them.
b0lsc0ttIT ManagerCommented:

So where is that error showing?  Can you upload a screenshot?  Can we see code for the line and section reported in the error and code for the object that is mentioned?

The expert above is correct though.  The server doesn't run Javascript.  If it really is Javascript or other clientside script then it is the browser showing the error and you won't be able to control how that is done.  If you can modify the code and it is related to just one block of code you might consider a try/catch block to "catch" the error.  Basically this would make it so you could have nothing show if there is an error or problem with that section of script.  In situations where you know your code may not be supported or will cause an error this method is the way to properly handle it so the user sees what you want.  Let me know if you need details on using try/catch but there is a nice, simple example at .

Let me know if you have any questions or need more information.

funnymanmikeAuthor Commented:
error is a java script pop up
cannot show any code for this

i saw spots in IIS that talked about errors though.

let me review the link and check the code. i will also try and get a screenshot.
b0lsc0ttIT ManagerCommented:
The spots in IIS that would talk about errors would be HTTP errors.  They would show in a web page.  If it is a popup like an alert then that is clientside and nothing the server can prevent.  Preventing the error message would need to be done in Javascript code or in the browser's settings (which just the user can change).
If you can't provide code then we can't confirm or help fix this but you might still try to use the try/catch to stop the message, if it is just one part causing it.  All credit to the expert above though for answering the part that IIS can't stop Javascript errors.
funnymanmikeAuthor Commented:
execute permissions
 - configurations
 - Debugging

that's where i was looking at.
b0lsc0ttIT ManagerCommented:
OK.  Thanks for clarifying the settings.  Unfortunately that area and those settings are still for debugging script processed by IIS.  Clientside Javascript (i.e. script in a js file, in the <script> tags, or in an html tag's event) is not processed by IIS so would not be affected by those settings.  In some cases those should not be enabled without serious consideration because they will add to the server overhead.  In other words might be OK on a development machine when you need the debugging info and might even want it sent to the client (i.e. VisualStudio) but not something that would be enabled and used on a production server.
I hope this helps explain those options but unless you are wrong about the type of script those settings will not help.  Have you looked at try/catch?  Let us know if you have a question.
b0lsc0ttIT ManagerCommented:
Please explain why you closed this as you did with the grade and accepting just the one comment.  Let me know if there was a mistake or you weren't aware you could split the points and credit but this would seem to be a question where there was more than one contributor and it also seems to be completely answered.  If it was a mistake then let me know and I can help correct it.  Otherwise please post to explain how this turned out and why you closed it as you did.
b0lsc0tt has asked ( for an explanation of why you selected the
answer(s) you selected for this question.
Please indicate your reasoning within the next four days.  I or another Moderator will check
back in about four days, at which time we expect to see your explanation.
To other participating Experts: please leave your recommendations as well.
After reviewing the explanation and other recommendations, the Moderator may decide to
change the award for the question.
Thank you,  
Friendly Neighbourhood Community Support Moderator
No Response to Expert and/or Moderator.
Force closed.
Experts Exchange Moderator

funnymanmikeAuthor Commented:
how can i even tell what i maked this as?

and why do i have to defend my opinion for a website i pay 15$ a month for?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.