I am well aware of the difference in peoples beliefs on ASP vs. VBScript
vs. JScript.  I've been doing ASP/VBScript since ASP was released in 96 I
believe.  I know the difference, thank you, I just choose to call it all
ASP.  It gets to confusing when talking about VBScript in Excel compared to
ASP, so I call it all ASP to make it easier for people to know what I'm
talking about.  Eddie wasn't looking for a bunch of technical mumbo jumbo,
obviously from his question, he didn't know ASP, so I gave him a simple
answer with source.
        My personal believe is that JScript is a POS that MS should have let die
when they lost the client side war with JavaScript.  I know JScript also.  I
just called it poor because it used four variables where one line of code
could have done what was needed without allocating four memory blocks for
the variables.  Hence poor, and since it breaks it into many lines, it's
also hard to read.  If anyone cares about what exactly ASP is, consult MS.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David L. Penton
Sent: Wednesday, February 07, 2001 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: CF & ASP objects


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



-------------------------------------------------------------------------
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