Not, the code ASP is good, but code JavaScript of client no, example of codes:
<html>
<HEAD>
<title>-------</title>
<link href="../css/Styles.css" rel="stylesheet" type="text/css">
</HEAD>
<body bgcolor="white">
<script language=javascript>
function VerificaDatos()
{
if (fIngreso.usuario.value.length == 0)
{
alert("Ingrese su usuario, por favor");
fIngreso.usuario.focus();
fIngreso.usuario.select();
return false;
}
return true;
}
</script>
..
..
<form name=fIngreso method=post action=Ingreso.asp onsubmit='return
VerificaDatos());'>
..
..
In the instant of submit not executes the JavaScript code.
"Aaron [SQL Server MVP]" wrote:
http://www.aspfaq.com/2476
http://www.aspfaq.com/2147
--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
"JAC" <JA*@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com... The code JavaScript is not executed in the pages ASP in a server IIS 6.0
in
Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can
configure
it so that it is executed.