Solved

Stack Overflow at Line: 0 error on clients viewing the web app

Posted on 2007-03-27
7
491 Views
Last Modified: 2008-02-01
We are getting an intermittent error on our clients (viewing a web app)  that I beleive may be cause by a javascript error.

The error reads as such:
Stack Overflow at Line: 0

We recently added a javascript at the request of our vendor. Is it possible that this is causing the issue? if so could you explain why?

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
   theObjects[i].outerHTML = theObjects[i].outerHTML;
}
0
Comment
Question by:bbcac
  • 4
  • 3
7 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 18803048
That is absolutely dangerous code.
First of all outherHTML is not standard but IE specific and does NOT work correctly when overwritten for regular html elements and for <objects> absolutely not usable!

0
 

Author Comment

by:bbcac
ID: 18804235
when you say regular html... what do you mean?

Also, why would you EVER use a script like this?
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 18806406
Regular html elements are the one of them more then eighty percent of a web page consist.
Non regular are the rest, like <applet>, <object> and other mostly not used elements.

The script when used for some special <object> that install some special ActiveX elemenst shell do a Reset or Restart of that ActiveX. And that is nonsense. Better would be to have the ActiveX enable a public open method that can be called from script to ActiveX for restart or reset.

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:bbcac
ID: 18806582
without editing any of the scripts or code is there anyway that I can determine which .js file or function is throwing the error if I find a client with it on the screen?
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 18807068
0
 

Author Comment

by:bbcac
ID: 18835573
Is it possible that this line of code is bringing down the apache server?

It seems that this error shows up arround the same time that the server goes down.
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 18835610
No that cannot be. It is a simple coincidence observation.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now