Script Error Checking (v9.0010)

Discussion about any web related scripting languages like JavaScript, ASP, and PHP.

Script Error Checking (v9.0010)

Postby 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
paulp575
Rank II - Novice
Rank II - Novice
 
Posts: 42
Joined: Tue Aug 09, 2005 1:20 pm
Location: Spokane WA

Re: Script Error Checking (v9.0010)

Postby 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
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2433
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to Scripting Languages

Who is online

Users browsing this forum: No registered users and 2 guests