Foros del Web » Programando para Internet » Javascript »

Incrustar o agregar asp en codigo JavaScrip

Estas en el tema de Incrustar o agregar asp en codigo JavaScrip en el foro de Javascript en Foros del Web. Como Incluyo condigo asp en JavaScript,, en html, lo que hago esa asi: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> ...
  #1 (permalink)  
Antiguo 06/08/2002, 12:12
 
Fecha de Ingreso: abril-2002
Mensajes: 118
Antigüedad: 22 años, 1 mes
Puntos: 1
Incrustar o agregar asp en codigo JavaScrip

Como Incluyo condigo asp en JavaScript,,

en html, lo que hago esa asi:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<%= Request("HOLA") %>
</body>
</html>

LO quise hacer asi , pero no me funciona

function MM_validateForm()
{ //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3)
{
test=args[i+2]; val=MM_findObj(args);
if (val)
{

nm=val.name; if ((val=val.value) ==<%=Request.Form("FICHA")%>)
alert('The following error(s) occurred:\n'+errors);
}

}
}
//-->
</script>

Como le hago para hacer esto
  #2 (permalink)  
Antiguo 07/08/2002, 02:43
 
Fecha de Ingreso: junio-2002
Mensajes: 750
Antigüedad: 21 años, 11 meses
Puntos: 22
Re: Incrustar o agregar asp en codigo JavaScrip

Una opción podría ser usar el document.write
o el document.writeln:

<html>
<body>
<script>
function ver() {
document.writeln('<%Recordset.Fields.Item(&quot ;Mensaje").Value%>');
}
</script>
<script>ver()</script>
</body>
</html>
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:19.