Page 1 of 1

Script Error Checking (v9.0010)

PostPosted: Tue Sep 23, 2008 7:15 pm
by paulp575
I ma getting the following error:

Code: Select all
[JavaScript] html error: script tag should be empty if a src attribute is specified


in response to the following line:

Code: Select all
<script type="text/javascript" language="JavaScript" src="0-s-menu_files/tree.js"> <!-- --> </script>


Just a bit confused by what the error message is telling me!

Thanks,

paulp575

Re: Script Error Checking (v9.0010)

PostPosted: Wed Sep 24, 2008 7:46 am
by Albert Wiersch
paulp575 wrote:I ma getting the following error:

Code: Select all
[JavaScript] html error: script tag should be empty if a src attribute is specified


in response to the following line:

Code: Select all
<script type="text/javascript" language="JavaScript" src="0-s-menu_files/tree.js"> <!-- --> </script>


Just a bit confused by what the error message is telling me!


It's wanting something like this (where the content is empty):
Code: Select all
<script type="text/javascript" language="JavaScript" src="0-s-menu_files/tree.js"></script>


Try removing the " <!-- --> ". There's really no need for it.