07-26-2002, 08:20 PM
IE says there's a Run Time error and
further says it's a syntax error in the
statement beginning: "<script language= "
If I comment it out, there is no error, so it
must be this statement. Please... do you
see an error??
<!-- points to location of script popup window used to display jpgs -->
<body bgcolor="#cccccc" link=blue alink=red vlink=blue>
07-26-2002, 08:57 PM
i don't see an error, looks fine to me, but your browser might do. here are some ideas:
1. try a different browser
4. (most likely, i think) is it definetely referring to this line in the html? i'm thinking the syntax error is actually in the external .js. this way, if you comment out the script tag, of course it will stop cos the script with the error is never loaded. im assuming the error is 'syntax error at line whatever', have a look at this line in your .js.
07-26-2002, 09:19 PM
I had it in the HEAD first and moved it to the BODY
to see if anything changed. It didn't.
Here's the 81st line of the indjs.js
script... which is where the browser reports
the error... i.e. "Line 81"
Do you see a syntax error there?
<!-- DEFINE FUNCTION FOR POPUP PHOTO WINDOW -->
07-27-2002, 11:12 AM
i didn't see any problem when i first looked at that, cos its not strictly a syntax error.
you don't put <script> tags in .js files.
// DEFINE FUNCTION FOR POPUP PHOTO WINDOW
if you've got any more html tags in your .js file - these might be <script> or even <!--comment--> tags, take them out.
07-27-2002, 04:59 PM
Yes, that's exactly what was wrong.
I found other HTML comments in the *.js file
which had been there for years; apparently
some browsers will overlook html comments.