Help! Script Errors whenever I modify page!

They have: 296 posts

Joined: Sep 1999

I have no idea why, but whenever I modify anything on my index page I get a script error! I have no idea why!
if you go to http://www.noggy.net and view the file there it works fine but if I change even a small link or a keyword I get an error

" An error has occured on the scripts on this page"

Syntax error line 612

I had a look at line 612 but nothing seems wrong with it,

Please help

Ps. I am using IE4 people using IE5 don't seem to get this error.

Thanks

~Vy~

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi vy22,

Smiling Long time no see!
I don't have version 4+ any more (aol in its omniscient kindness, wiped it out), but....

according to cuteHTML (my editor w/line numbers) the following includes line 612

s=screen;srw=s.width;an!="Netscape"?
srb=s.colorDepth:srb=s.pixelDepth;

if this is supposed to be a (condition)? true : false; construct, it is written wrong.

it should be:
s = screen;
srw = s.width;
srb = (an!="Netscape") ? s.colorDepth : s.pixelDepth;

(if an doesn't = netscape, srb = colorDepth else pixelDepth)
Vinny

Where the world once stood
the blades of grass cut me still

They have: 296 posts

Joined: Sep 1999

Hey Vince been working hard so have not had much time to pop in by.

Nope That line was from Extreme Tracker of wich I have never had any problems with. I removed the whole script just incase and the error line just seems to randomly change to other lines.

I think the problem lies in something at the start of the page that is effecting the whole page.

The next line is

518=

don't see anything wrong with this? Anyway why would I only get script errors on modifieng the page? It is only when I change something I get the error.

Cheers

~Vy~

PS. AOL STILL SUCKS!

They have: 296 posts

Joined: Sep 1999

Ah! Found the bug and slapped it with a herring!

I just removed chunks of the page in Dreamweaver and previewed it using the preview function until I stopped getting the script error. The problem was with my logit pro (Tracker) that I recently added.

<script src="http://noggy.net/cgi-noggy/logitpro/logitpro.cgi?java"></script>

<script>
 
 

</script>

When I removed the above code it started working again. Think I should e-mail the guy and tell him this. Is there such a thing as a JAvascript Conflict? This seems to work ok on all my other pages why not my main page?

~Vy~

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Vy,

There are loads & loads of javascript conflicts -- usually when you have a lot of global variables & functions with the same names.

But regarding the code: He's dumping closing html tags into a script that goes in the body????? to create a gif?

Vinny

Where the world once stood
the blades of grass cut me still

They have: 5,633 posts

Joined: Jan 1970

The problem with your script above (the logitpro script) can be easily solved, and is not caused by the logitpro script at all. Let's have a look at what you took out:

"
<script src="http://noggy.net/cgi-noggy/logitpro/logitpro.cgi?java"></script>

<script>
 
 

</script>
"

If you look above, under where the logitpro script is, you will see some deffinate javascript errors. You CANNOT have html inside of JavaScript:

"
<script>
 
 

</script>
"

Note that after the <script> tag, you have put in some html codes:

"
 
 

"

Thus removing this entire chunk:
"
<script>
 
 

</script>
"

Will solve your problem, and leave you with only this in return:
"
<script src="http://noggy.net/cgi-noggy/logitpro/logitpro.cgi?java"></script>

"

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.