<!--#Include Virtual="LeonSac/Include/Funciones.inc"-->
<!--#Include Virtual="LeonSac/Include/Funciones1.inc"-->
<!--#Include Virtual="LeonSac/Include/FuncionesJava.Inc"-->
<%If Trim(Request("Color"))<>"" Then
Dim cSQL
Color=Trim(Request("Color"))
'----------------------------------------------------------------
On Error Resume Next
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open Session("LeonSac_ConnectionString")
cSQL = "EXEC ColoresA '" & Color & "'"
oConn.Execute cSQL
oConn.Close
If Err.number <>0 Then%>
<script language="VBscript">
alert(prueba)
</script>
<%Else
Response.Redirect("ColoresCons.asp")
End If
End If
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<title></title>
</head>
<body topmargin="0" leftmargin="0" link="blue" vlink="blue" alink="blue">
<div align="center">
<br>
<h3>INGRESO DE LA TABLA COLORES<h3><br>
<form name="frmColor">
<center>
<table border="1" width="70%" bordercolor="#004000">
<tr>
<table border="1" width="70%" bgcolor="#64d07c">
<tr>
<td width="14%" valign="TOP" height="24"><strong>Color</strong></td>
<td width="20%" valign="TOP" height="24"><INPUT type="text" id=Color name=Color OnChange="javascript:ValidaIng(document.frmColor.Color.value,1)" size="25" MaxLength="25"></td>
</tr>
</table>
</tr><INPUT type="submit" value="Submit" id=submit1 name=submit1>
</table>
</center>
</form>
</body>
</html>
<script language="JavaScript">
function ValidaIng(texto,valor)
{
if (valor==1)
{
Rpta=ValidaNombre(document.frmColor.Color.value,'Color');
if (Rpta==false)
{
document.frmColor.Color.value="";
}
}
}
</script>
Tengo un problema con javascript no reconoce el objeto cuando intento llamarlo desde la función en javascript, desde html uso el un objeto input text le paso valor en codigo asp, necestito xq tambien estoy llamando a gunciones javascript desde
un archivo include para consistenciar el ingreso, como podran ver el codigo no funciona el script de java`pero si de el codigo asp si funciona, tengo windows xp con sp3 y internet explorer 8 ademas visual studio 6 con sp6, que necesito para q funcione o necesito
referenciar algo, ya instale la ultima compilacion de virtual java nachine 3810 q debo hacer ayudenme x favor
Analista Programador de Sistemas