Just for clarity (and not for flame :-)

Request is an intrinsic ASP object

ASP is a platform, not a language

The code that is commonly used in ASP is VBScript

The [poor] code below is written in JScript


David L. Penton, MCP 
Consultant
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach" 
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jacob Cameron
Sent: Wednesday, February 07, 2001 10:04 AM

Request just tells ASP, I want to get some info, like:
request.form("") or request.querystring("").  Your just getting a CGI
variable with the very bad ASP code bellow.  LOGON_USER is the NT Challenge
response username, also called CGI.AUTH_USER.

This will do what you want in CF:

<cfset username=ListLast(CGI.LOGON_USER,"\")>
<cfoutput>#username#</cfoutput>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Phillips, Eddie
Sent: Wednesday, February 07, 2001 9:42 AM

Hey,

Is "Request" one of these intrinsic objects?  I am trying to convert the
below code to CF and am unable to find an equivalent command for the
Request.ServerVairables.
Any help would be greatly appreciated...

<%
x = String(Request.ServerVariables("LOGON_USER"));
var start_index = x.lastIndexOf("\\")+1;
var end_index = x.length;
var username = x.slice(x.lastIndexOf("\\")+1,x.length);
Response.Write(username);
%>

Thanx!!

Eddie Phillips
EDS Canada Inc.
Web Services Architect - PCO
[EMAIL PROTECTED]
Ph. (204) 926-2712
Fax (204) 943-2765


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to