
02/10/2003, 08:30
|
 | | | Fecha de Ingreso: febrero-2002
Mensajes: 57
Antigüedad: 23 años, 2 meses Puntos: 0 | |
Principiante y tengo este error al hacer una asignacion Soy principiante en asp y estoy haciendo la siguiente prueba, aki pongo todo el codigo del archivo asp:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>Prueba</TITLE>
</HEAD>
<%
sub hola()
document.Form.text2.value="hola"
end sub
%>
<BODY>
<form name=formulario method=post>
<INPUT type="text" id=text1 name=text1 onclick=<%hola()%>>
<INPUT type="text" id=text2 name=text2>
<P> </P>
</form>
</BODY>
</HTML>
el error q me da es el siguiente:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'document'
/webdigital2/Site/prueba.asp, line 9
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Page:
GET /Site/prueba.asp
si alquien me puede ayudar lo agradeceria mucho. |