Solved

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

Posted on 2007-03-27
7
484 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:bbcac
Comment Utility
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
Comment Utility
0
 

Author Comment

by:bbcac
Comment Utility
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
Comment Utility
No that cannot be. It is a simple coincidence observation.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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.
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

772 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

11 Experts available now in Live!

Get 1:1 Help Now