Solved

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

Posted on 2007-03-27
7
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find unused columns in a table 12 75
Put javascript to get dropdown value 3 22
Get Text of Select using class name ***JavaScript Only*** 3 15
Diff of the day 2 10
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

730 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