It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

help with script stopped responding error

help with script stopped responding error

Postby JustMe on Wed Dec 26, 2007 6:38 pm

Hello everyone/anyone,

Need some help on determing what script stops running on the index page http://www-hdtv-streaming-tech.com

After about 20 seconds on the page you'll get a pop-up window stating the script has stopped responding and to either stop it by clicking Yes or No to continue. This happens in IE & FF.

Now I didn't actually write any of the javascripts that the page or site uses. I'm just responsible for figuring out which script is erroring.

It doesn't seem to happen on any of the other pages, just the index page.

Any help or troubleshooting would be greatly appreciated.

Thank you.
JustMe
 
Posts: 3
Joined: Wed Dec 26, 2007 6:29 pm

Postby flabbyrabbit on Wed Dec 26, 2007 10:18 pm

Ok first off what javascript is on that page that is on any of the others??

Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Re:script error

Postby JustMe on Thu Dec 27, 2007 6:28 pm

Ok first off what javascript is on that page that is on any of the others??


This:
Code: Select all
<script type="text/javascript" src="js/textarea.js"></script>


but, commenting it out or just plain removing it doesn't change anything.

Also, this is added on every page BUT the index page:
Code: Select all
<link rel="stylesheet" type="text/css" href="style/exp_tools.css" media="all" />
      <script type="text/javascript" src="js/swfobject.js"></script>
      <script type="text/javascript" src="js/layers.js"></script>
      <script type="text/javascript" src="js/billcalc.js"></script>


but again adding it to the index page doesn't change anything either.

Is there any kind of free tool on the web to help me see what is being called when the page is loading?
JustMe
 
Posts: 3
Joined: Wed Dec 26, 2007 6:29 pm

found it!

Postby JustMe on Fri Dec 28, 2007 12:42 am

Using a tool called ScrypTik I found the problem:

Code: Select all
for (var i == 0; div = divs[i]; i++) {


i changed var i from = 0 to var i == 0 in the js file collapsiblock.js

works fine now.

thanks for all the help...
JustMe
 
Posts: 3
Joined: Wed Dec 26, 2007 6:29 pm


Who is online

Users browsing this forum: No registered users and 4 guests