Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Invalid element 'SCRIPT' in content of 'html'.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
wmec



Joined: 01 Jun 2007
Posts: 2

PostPosted: Fri Jun 01, 2007 3:42 am    Post subject: Invalid element 'SCRIPT' in content of 'html'. Reply with quote

Hi,
My JSP source (which is for Java version - 1.4.2_06) is like this but I'm with the captioned problem.

<%@ page contentType="text/html;charset=Big5"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Big5">
<title>start_pg</title>
</head>
<SCRIPT language="JavaScript1.2">
function its_details
{
...
}
</SCRIPT>
<body>
...
</body>
</html>


Last edited by wmec on Fri Jun 01, 2007 3:59 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
LucasZ21
100+ Club


Joined: 26 Feb 2007
Posts: 195
Location: Mansfield, OH

PostPosted: Fri Jun 01, 2007 3:57 am    Post subject: Re: Invalid element 'SCRIPT' in content of 'html'. Reply with quote

Code:

<script language = "javascript">
function its_details {
.............................
}
</script>


I think it's because you had script capitalized...and I don't believe you need to put "javascript 1.2"
Back to top
View user's profile Send private message Visit poster's website AIM Address
wmec



Joined: 01 Jun 2007
Posts: 2

PostPosted: Fri Jun 01, 2007 4:14 am    Post subject: Re: Invalid element 'SCRIPT' in content of 'html'. Reply with quote

I've changed that to be

<script language="javascript">
function its_details {
.............................
}
</script>

but the same problem still persists.
Back to top
View user's profile Send private message MSN Messenger
LucasZ21
100+ Club


Joined: 26 Feb 2007
Posts: 195
Location: Mansfield, OH

PostPosted: Fri Jun 01, 2007 4:31 pm    Post subject: Re: Invalid element 'SCRIPT' in content of 'html'. Reply with quote

I think you may have to have your javascript in between your head tags...

If that doesn't work then I don't know. Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap