Well I never make mistakes either, but sometimes I'm forced to fix other
people's mistakes. ;-)
Alan, you devil's-advocatley-mentioned explicitly declaring which scope you
want a variable in. I always perform logins by checking for form.username
and form.password. I don't want no goofball trying to log in via a bookmark
s/he built themselves, and I don't want some jerky coder cfmoduling into my
login fuseaction. IMHO, there's nothing wrong with doing it that way on
occasion. But as a general rule, I always try to attributes scope
erv'ratang.
Struggling to consider myself at 100%,
NAT
-----Original Message-----
From: Erik Voldengen [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 17, 2000 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Need to toggle URL and FORM vars
So I Guess I am the one at 97%. Probably less than that.
I still like to use variables to force the data passed
between act_ and dsp_ files on occasion, though. I
never need to wing it like Nat said, because I never
make mistakes.
J.K.
-Erik
> -----Original Message-----
> From: Hal Helms [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 17, 2000 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Need to toggle URL and FORM vars
>
>
> Yes. The only times I don't is when using "self" -- a
> pseudo-constant that
> points to index.cfm (or whatever the fusebox is) and some things like
> "request.dsn" -- but essentially, yes, everything's an
> attributes scoped
> var.
>
> -----Original Message-----
> From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 17, 2000 12:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Need to toggle URL and FORM vars
>
>
> Ah, the lightbulb is up to 98% on. So as a principle, do you
> scope every
> occurence of a variable with the attributes. prefix?
>
> Alan McCollough
> Web Programmer
> Alaska Native Medical Center
>
> > -----Original Message-----
> > From: Hal Helms [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, July 17, 2000 8:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Need to toggle URL and FORM vars
> >
> > I think I speak for all people in all places and at all times in
> > condemning
> > the very asking of such a question! Nah--I'm lying. There's
> nothing wrong
> > with the question. The reason for attributes is that if a CF page is
> > called
> > as a custom tag, then the variables sent to it must be
> prefixed with the
> > attributes. notation. Instead of having two versions of the
> code, we just
> > convert everything to an attributes scope and are finished with it.
> >
> > -----Original Message-----
> > From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 17, 2000 11:39 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: Need to toggle URL and FORM vars
> >
> >
> > OK, I'm now going to ask a question that is so shocking, so
> inane, that
> > I've
> > gotta gotta ask it.
> >
> > I have never understood fully the benefits of using
> attributes. scoped
> > variables instead of form. or url. scoped variables. Could
> somebody please
> > enlighten me? I'm sure I got beat up on the CF Developer's
> test on those
> > questions...
> >
> > Alan McCollough
> > Web Programmer
> > Alaska Native Medical Center
> >
> > > -----Original Message-----
> > > From: Fred T. Sanders [SMTP:[EMAIL PROTECTED]]
> > > Sent: Saturday, July 15, 2000 7:54 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Need to toggle URL and FORM vars
> > >
> > > well if your using formurl2attributes, then you can code them as
> > > attributes.
> > > scoped variables and it won't matter how your getting them.
> > >
> > > Fred
> > >
> > > ----- Original Message -----
> > > From: "CM Randall" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Saturday, July 15, 2000 11:22 AM
> > > Subject: Need to toggle URL and FORM vars
> > >
> > >
> > > > I'm working with a site that is going to send me vars
> using either URL
> > > or
> > > > FORM variables. I have the code done for accepting URL
> variables and
> > I
> > > want
> > > > to find an easy way to dynamically convert all my URL.vars to be
> > > FORM.vars
> > > > in my code. I can setup a CFIF statement to check and
> then send the
> > > script
> > > > to the correct code (either URL or FORM) but then I
> would have two
> > code
> > > sets
> > > > to manage.
> > > >
> > > > Is there a way to modify my current code to accept the
> other servers
> > > > variables no matter if they are sending URL or FORM
> vars? The code
> > for
> > > both
> > > > is 100% identical.
> > > >
> > > > Thanks,
> > > > --RC
> > > >
> > > >
> >
> ______________________________________________________________
> __________
> > > > Get Your Private, Free E-mail from MSN Hotmail at
> > http://www.hotmail.com
> > > >
> > > >
> > >
> >
> --------------------------------------------------------------
> ------------
> > > ----
> > > > To Unsubscribe visit
> > >
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox
> or
> > send a message to [EMAIL PROTECTED] with 'unsubscribe'
> in
> > the body.
> > >
> >
> >
> --------------------------------------------------------------------------
> > ----
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox
> or
> > send a message to [EMAIL PROTECTED] with 'unsubscribe'
> in
> > the body.
> --------------------------------------------------------------------------
> --
> --
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
> ----
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.