Solved

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

Posted on 2007-03-27
7
496 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML5 Looping table certain Cell 11 54
Generate Numbers in JQuery file 11 66
Question about traversing a tree using jQuery 7 33
Need to combine two scripts 2 33
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

839 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