[Javascript] Javascript/JScript & ASP

andyg at ihug.co.nz andyg at ihug.co.nz
Mon Feb 18 14:54:58 CST 2002


> hi:
> 
> i have a problem whith an ASP page using JavaScript/JScript that give an 
> error whenever i use any ASP object:
> 
> <%@language="JavaScript"%>
> <%
>  var us = Request.Form("nombre");
>  var pw = Request.Form("pasword");
>  var uscok = Request.Cookies ("usuario");
>  var pwcok = Request.Cookies ("contrasena");
> 

Are you trying to write asp variables into a client side script? Then would 
this work?

var us =
'<%=request.form("nombre")%>';




More information about the Javascript mailing list