D
Dannie Juge
I found a terrible bug in ASP server, does ANYBODY know
how to fix this?!! The error happens if you have
a "<script>" tag into another script, EVEN WHEN IT'S
COMMENTED OR INTO A STRING (OR BOTH). Here's a simple
example of this:
<%@Language=vbscript%>
<HTML>
<HEAD>
<SCRIPT language='JavaScript'>
function showAlert(){
/*
This comment generates an error!!!!
The error is:
"Active Server Pages, ASP 0138 (0x80004005)
A script block cannot be placed inside another
script block."
alert("You are running a <script>");
Just because the <script> tag is included into the
script! But the <script> tag is firstable into a String
and then into a comment.
This error should not ever happened. The error happens in
the server side, it means, the ASP server has this
terrible bug!!
*/
}
</SCRIPT>
</HEAD>
<BODY>
<form>
<input type="button" onclick="javascript:showAlert
();">
</form>
</BODY>
</HTML>
how to fix this?!! The error happens if you have
a "<script>" tag into another script, EVEN WHEN IT'S
COMMENTED OR INTO A STRING (OR BOTH). Here's a simple
example of this:
<%@Language=vbscript%>
<HTML>
<HEAD>
<SCRIPT language='JavaScript'>
function showAlert(){
/*
This comment generates an error!!!!
The error is:
"Active Server Pages, ASP 0138 (0x80004005)
A script block cannot be placed inside another
script block."
alert("You are running a <script>");
Just because the <script> tag is included into the
script! But the <script> tag is firstable into a String
and then into a comment.
This error should not ever happened. The error happens in
the server side, it means, the ASP server has this
terrible bug!!
*/
}
</SCRIPT>
</HEAD>
<BODY>
<form>
<input type="button" onclick="javascript:showAlert
();">
</form>
</BODY>
</HTML>