?
Solved

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

Posted on 2007-03-27
7
Medium Priority
?
504 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 2000 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

862 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