Script Error Checking (v9.0010)

Discussion about any web related scripting languages like JavaScript, ASP, and PHP.
Post Reply
paulp575
Rank III - Intermediate
Rank III - Intermediate
Posts: 55
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA
Contact:

Script Error Checking (v9.0010)

Post by paulp575 » Tue Sep 23, 2008 7:15 pm

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
paulp575

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3440
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Script Error Checking (v9.0010)

Post by Albert Wiersch » Wed Sep 24, 2008 7:46 am

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.
Image
Albert Wiersch

Post Reply