I need to use Javascript in classic ASP for a project. However, I seem to have problem using javascript combined with ASP. Here are the questions:
1) ERROR to create class, see code below:
however, I have no problem creating class in pure html javascript. I thought it is because of the version. I am using IE 8 in vista and the javascript version 1.3.
2) I try to list out querystring using for in loop using javascript instead of vbscript and it doesn't work.
1) ERROR to create class, see code below:
Code:
<%@ Language = JavaScript %>
<html>
<body>
<%
Class vehicle {
}
%>
</body>
</html>
2) I try to list out querystring using for in loop using javascript instead of vbscript and it doesn't work.
Code:
<%@ Language=Javascript %>
<%
var strName = Request.QueryString("textbox3")
Response.write (strName)
for (var strList in Request.QueryString)
{
Response.write (strList)
}
%>
<%@ Language=Javascript %>
<%
for (var strList in Request.QueryString)
{
Response.write (strList)
}
%>
Comment