Error de compilación de Microsoft VBScript error '800a03ee'
Se esperaba ')'
/chat2/login.asp, line 30
window.open(""chat.html?userid=count & "Name*" & user & _
--------------^
La verdad no se porque sea pero este es mi código:
<%
Response.Expires = 0
'if this page is requested by clicking the Submit button
if request("submit") <> "" then
dim count,user,strMsg
user = Request.form("txtUser")
'check for white space
if instr(user," ") > 0 then
strMsg = "space is not allowed, please"
end if
'get the total no. of online users
count = cint(Application("usercount"))
'check for duplicate name
for i = 1 to count
if trim(user) = application("name" & i) then
strMsg = "Please enter another Nick name"
end if
next
'if everything is OK,
'then store the user name in the application object as well as
'the session object, increment the user count by one, and
'open the chat window
if strMsg = "" then
count = count + 1
Application("usercount") = count
Application("name" & count) = user
session("user") = user
Response.Write "<script>" & _
window.open(""chat.html?userid=count & "Name*" & user & _
""","""","" toolbar=no,location=no,directories=no," & _
"status=no,menubar=no,resizable=no,scrollbars= no," & _
"copyhistory=no,width=650,height=300"")</script>"
Response.End
end if
end if
%>
<html>
<title>C H A T </title>
<script>
//to maintain a standard in names,
//name entered by the user is changed to lowercase
//except the first character which is to uppercase.
function changeCase(){
var strName;
var data = document.frm.txtUser.value;
strName = data.substr(0,1).toUpperCase();
strName += data.substr(1).toLowerCase();
document.frm.txtUser.value = strName;
}
</script>
<body onload="document.frm.txtUser.focus();">
<form name=frm action="login.asp" method="post" onsubmit="changeCase()">
<table border=1 width=50% bgcolor=DarkSeaGreen align=center>
<tr><td align=center>
<font color=darkblue size=7>C H A T</font><br>
<font color=red><%= strMsg %></font>
<br>
Tu Nick:
<input size=15 name=txtUser>
<input type=submit value="Submit" name=submit>
</td></tr></table>
</form>
</body>
</html>

