hola osy nuevo aqui, la verdad es que no tengo la menor idea por ke me sale eso, la pagina en la ke estoy trabajando aceptaba muy bien javascript pero ahora no puedo poner ningun tipo de javascript, no se en ke la este regando si me pueden decir les agradeceria
Código:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<% if session("user")="" or session("pass")="" or session("nivel")<>"SECRETARIO" then
response.Redirect("main.asp")
end if%>
<script type="text/javascript">
function bandera()
{
alert("entre");
}
</script>
<title>Listado de Solicitudes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="100">
<param name="movie" value="cenentos2.swf">
<param name="quality" value="high">
<embed src="cenentos2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="100"></embed>
</object>
<%
set conn = CreateObject("ADODB.Connection")
conn.open("DRIVER=Firebird/InterBase(r) driver; UID=x;PWD=x; DBNAME=x")
if conn.state<>1 then
response.Write("Usuario o Contraseña Incorrectos")
conn.close
response.Redirect("main.asp")
end if
sql = ""
sql="select solicitud.id_solicitud FOLIO,municipios.nombre_mpio,solicitud.DESCRIPCION,solicitud.nombre_obra NOMBRE, solicitud.fecha_realizacion_solicitud,"
sql=sql&"solicitud.TOT_CEMENTO_MPIO, solicitud.TOT_CEMENTO_ESTADO,localidades.nombre_loc, solicitud.tot_beneficiados from solicitud, municipios, localidades where solicitud.id_localidad=localidades.id_localidad and"
sql=sql&" solicitud.id_mpio=municipios.id_mpio and solicitud.firma_secretario_sdm is null and solicitud.FIRMA_DIRECTOR= 1 "
set rs= createObject("ADODB.Recordset")
rs.Open sql , conn%>
<table border="1" width="100%">
<tr bgcolor="#FFFBF0" align="center">
<th>FOLIO</th>
<th>MUNICIPIO</th>
<th>DESCRIPCIÓN</th>
<th>NOMBRE</th>
<th>FECHA DE REALIZACIÓN</th>
<th>TOTAL DE CEMENTO MUNICIPAL</th>
<th>TOTAL DE CEMENTO ESTADO</th>
<th>LOCALIDAD</th>
<th>BENEFICIARIOS</th>
</tr>
<%do until rs.EOF%>
<tr>
<%for each x in rs.Fields%>
<td><%Response.Write(x.value)%></td>
<%next%>
<td>
<form action="" method="post" >
<textarea cols="20" rows="3" name="obs" ></textarea>
¿Qué desea hacer?
<input type="button" value="Autorizar" onClick="bandera()">
<input type="submit" value="Rechazar" name="rechazo" >
<input type="hidden" value="<%=rs.fields.item("FOLIO")%>" name="id_sol">
<input type="text" name="bandera" value="1">
</form>
</td>
<%rs.MoveNext%>
</tr>
<%loop
rs.close
conn.close
%>
</table>
</body>
</html>
como ven kiero hacer un onclick event pero me sale eso... ideas?