| View previous topic :: View next topic |
| Author |
Message |
wmec
Joined: 01 Jun 2007 Posts: 2
|
Posted: Fri Jun 01, 2007 3:42 am Post subject: Invalid element 'SCRIPT' in content of 'html'. |
|
|
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 |
|
 |
|
|
LucasZ21 100+ Club

Joined: 26 Feb 2007 Posts: 195 Location: Mansfield, OH
|
Posted: Fri Jun 01, 2007 3:57 am Post subject: Re: Invalid element 'SCRIPT' in content of 'html'. |
|
|
| 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 |
|
 |
wmec
Joined: 01 Jun 2007 Posts: 2
|
Posted: Fri Jun 01, 2007 4:14 am Post subject: Re: Invalid element 'SCRIPT' in content of 'html'. |
|
|
I've changed that to be
<script language="javascript">
function its_details {
.............................
}
</script>
but the same problem still persists. |
|
| Back to top |
|
 |
LucasZ21 100+ Club

Joined: 26 Feb 2007 Posts: 195 Location: Mansfield, OH
|
Posted: Fri Jun 01, 2007 4:31 pm Post subject: Re: Invalid element 'SCRIPT' in content of 'html'. |
|
|
I think you may have to have your javascript in between your head tags...
If that doesn't work then I don't know.  |
|
| Back to top |
|
 |
|