Re: Simple CFC quesiton

2005-09-09 Thread Ken Ferguson
Yeah, this is actually the post I was *trying* to reply to. I just hit 
reply on the latest one at the time...

--
You should never refer to the FORM scope from within a component.

Always refers to #ARGUMENTS.imageName#.

-Adam
-



Dave Watts wrote:

>>>You should never* be referring to the form scope in a CFC.
>>>
>>>...
>>>
>>>* blah blah blah, never is never accurate, there are always 
>>>exceptions.
>>>  
>>>
>>Holy Zarquon's singing fish! I absolutely LOVE it when we get 
>>into these discussions where the "you should never..." starts 
>>coming up. The only true generalization is that ALL 
>>GENERALIZATIONS ARE FALSE.
>>
>>
>
>Did you not see the asterisk?
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>
>Fig Leaf Software provides the highest caliber vendor-authorized 
>instruction at our training centers in Washington DC, Atlanta, 
>Chicago, Baltimore, Northern Virginia, or on-site at your location. 
>Visit http://training.figleaf.com/ for more information!
>
>
>

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217772
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple CFC quesiton

2005-09-09 Thread Dave.Phillips
Oh yeah.  Now I remember. ;-)

Dave

-Original Message-
From: Brian Kotek [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 11:31 AM
To: CF-Talk
Subject: Re: Simple CFC quesiton


(Original poster was making a Hitchhiker's Guide to the Galaxy reference.)

**
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217769
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-09 Thread Brian Kotek
(Original poster was making a Hitchhiker's Guide to the Galaxy reference.)

On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Who the heck is Zarquon?
> 
> Dave
> 
> -Original Message-
> From: Brian Kotek [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 09, 2005 11:14 AM
> To: CF-Talk
> Subject: Re: Simple CFC quesiton
> 
> 
> Holy Zarquon's singing fish! I absolutely LOVE it when people
> completely miss the intent of the author, the footnote, and the point!
> 
> On 9/9/05, Ken Ferguson <[EMAIL PROTECTED]> wrote:
> > Holy Zarquon's singing fish! I absolutely LOVE it when we get into these
> > discussions where the "you should never..." starts coming up.
> **
> The information contained in this message, including attachments, may contain
> privileged or confidential information that is intended to be delivered only 
> to the
> person identified above. If you are not the intended recipient, or the person
> responsible for delivering this message to the intended recipient, ALLTEL 
> requests
> that you immediately notify the sender and asks that you do not read the 
> message or its
> attachments, and that you delete them without copying or sending them to 
> anyone else.
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217768
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple CFC quesiton

2005-09-09 Thread Dave.Phillips
Who the heck is Zarquon?

Dave

-Original Message-
From: Brian Kotek [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 11:14 AM
To: CF-Talk
Subject: Re: Simple CFC quesiton


Holy Zarquon's singing fish! I absolutely LOVE it when people
completely miss the intent of the author, the footnote, and the point!

On 9/9/05, Ken Ferguson <[EMAIL PROTECTED]> wrote:
> Holy Zarquon's singing fish! I absolutely LOVE it when we get into these
> discussions where the "you should never..." starts coming up.
**
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217766
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-09 Thread Brian Kotek
Holy Zarquon's singing fish! I absolutely LOVE it when people
completely miss the intent of the author, the footnote, and the point!

On 9/9/05, Ken Ferguson <[EMAIL PROTECTED]> wrote:
> Holy Zarquon's singing fish! I absolutely LOVE it when we get into these
> discussions where the "you should never..." starts coming up.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217764
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple CFC quesiton

2005-09-09 Thread Dave Watts
> > You should never* be referring to the form scope in a CFC.
> > 
> > ...
> > 
> > * blah blah blah, never is never accurate, there are always 
> > exceptions.
>
> Holy Zarquon's singing fish! I absolutely LOVE it when we get 
> into these discussions where the "you should never..." starts 
> coming up. The only true generalization is that ALL 
> GENERALIZATIONS ARE FALSE.

Did you not see the asterisk?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217761
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-09 Thread Ken Ferguson
Holy Zarquon's singing fish! I absolutely LOVE it when we get into these 
discussions where the "you should never..." starts coming up. The only 
true generalization is that ALL GENERALIZATIONS ARE FALSE. It is not 
good to be in the habit of referring to the form scope in your CFC's. 
That does not mean that you should NEVER do it though. It sometimes fits 
in really nicely with what you're trying to accomplish. If that's the 
case, then by all means refer to the form scope in your CFC's. I do 
agree though, that it's not a good idea in most cases.

Sorry, I know the OP had nothing to do with this specific argument, but 
you all know by now that I'm gonna pitch a fit just about every time I 
hear someone telling people they should "never" or they should "always" 
do x or y or z, or even N.

--Ferg

Oh by the way, you should NEVER step out in front of a bus traveling at 
high speed and it's ALWAYS a good idea to ensure that your firearm is 
unloaded before cleaning it. I just felt I needed to throw this in as a 
preemptive strike at those who are going to say my "no generalizations" 
argument is wrong. Exceptions abound...


Barney Boisvert wrote:

>You should never* be referring to the form scope in a CFC.  You should
>be doing structKeyExists(arguments, "imageName") and if that returns
>true, then use it.  If it returns false, you don't have the variable
>to work with (regardless of whether it happens to exist in the 'form'
>scope).  If it does exist in form, not in arguments, and you NEED to
>have it, then it should be passed into the method.
>
>cheers,
>barneyb
>
>* blah blah blah, never is never accurate, there are always exceptions.
>
>On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
>  
>
>>When using arguments that are not required:
>>
>>
>>
>>Why do we refer to the argument as #form.imageName# instead of
>>#ARGUMENTS.imageName#, or does it not matter?
>>
>>Matt
>>
>>
>>
>
>  
>


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217756
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Simple CFC quesiton

2005-09-08 Thread Mark A Kruger
As Barney said they  are the same in most cases - but there is one caveat.
A "key" in a structure can actually contain a non-standard variable name
(for example foo['11234']).  Such a key name will evaluate as YES using
structkeyexists(foo,'1234') and throw an error for "isDefined('foo.1234')".
As it happens I wrote a blog just today on this very issue.

http://mkruger.cfwebtools.com/index.cfm?mode=alias&alias=isdefined%20vs%20st
ructkeyexists

-Mark



-Original Message-
From: Matthew Blatchley [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 08, 2005 4:50 PM
To: CF-Talk
Subject: Re: Simple CFC quesiton


Is this structKeyExists(arguments, "imageName") the same as
IsDefined("ARGUMENTS.imageName")?

- Original Message -
From: "Barney Boisvert" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, September 08, 2005 3:41 PM
Subject: Re: Simple CFC quesiton


> You should never* be referring to the form scope in a CFC.  You should
> be doing structKeyExists(arguments, "imageName") and if that returns
> true, then use it.  If it returns false, you don't have the variable
> to work with (regardless of whether it happens to exist in the 'form'
> scope).  If it does exist in form, not in arguments, and you NEED to
> have it, then it should be passed into the method.
>
> cheers,
> barneyb
>
> * blah blah blah, never is never accurate, there are always exceptions.
>
> On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
>> When using arguments that are not required:
>>
>> 
>>
>> Why do we refer to the argument as #form.imageName# instead of
>> #ARGUMENTS.imageName#, or does it not matter?
>>
>> Matt
>>
>
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 100 invites.
>
>



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217720
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-08 Thread Matthew Blatchley
ah...good to know. thanks

- Original Message - 
From: "Barney Boisvert" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, September 08, 2005 4:55 PM
Subject: SPAM-LOW: Re: Simple CFC quesiton


> No.  Most of the time they'll be functionally identical, but the
> former is what you want to use in nearly all cases.  It's more
> performant, far less ambigious, and more clearly communicates what
> you're doing.  For example isDefined("arguments.imageName") will
> return true if you have a URL variable named "arguments.imageName".
>
> cheers,
> barenyb
>
> On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
>> Is this structKeyExists(arguments, "imageName") the same as
>> IsDefined("ARGUMENTS.imageName")?
>>
>
> -- 
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 100 invites.
>
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217706
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-08 Thread Barney Boisvert
No.  Most of the time they'll be functionally identical, but the
former is what you want to use in nearly all cases.  It's more
performant, far less ambigious, and more clearly communicates what
you're doing.  For example isDefined("arguments.imageName") will
return true if you have a URL variable named "arguments.imageName".

cheers,
barenyb

On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
> Is this structKeyExists(arguments, "imageName") the same as
> IsDefined("ARGUMENTS.imageName")?
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217702
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-08 Thread Matthew Blatchley
Is this structKeyExists(arguments, "imageName") the same as 
IsDefined("ARGUMENTS.imageName")?

- Original Message - 
From: "Barney Boisvert" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, September 08, 2005 3:41 PM
Subject: Re: Simple CFC quesiton


> You should never* be referring to the form scope in a CFC.  You should
> be doing structKeyExists(arguments, "imageName") and if that returns
> true, then use it.  If it returns false, you don't have the variable
> to work with (regardless of whether it happens to exist in the 'form'
> scope).  If it does exist in form, not in arguments, and you NEED to
> have it, then it should be passed into the method.
>
> cheers,
> barneyb
>
> * blah blah blah, never is never accurate, there are always exceptions.
>
> On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
>> When using arguments that are not required:
>>
>> 
>>
>> Why do we refer to the argument as #form.imageName# instead of
>> #ARGUMENTS.imageName#, or does it not matter?
>>
>> Matt
>>
>
> -- 
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 100 invites.
>
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217699
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-08 Thread Barney Boisvert
You should never* be referring to the form scope in a CFC.  You should
be doing structKeyExists(arguments, "imageName") and if that returns
true, then use it.  If it returns false, you don't have the variable
to work with (regardless of whether it happens to exist in the 'form'
scope).  If it does exist in form, not in arguments, and you NEED to
have it, then it should be passed into the method.

cheers,
barneyb

* blah blah blah, never is never accurate, there are always exceptions.

On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
> When using arguments that are not required:
> 
> 
> 
> Why do we refer to the argument as #form.imageName# instead of
> #ARGUMENTS.imageName#, or does it not matter?
> 
> Matt
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217697
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-08 Thread Matthew Blatchley
Ah, so is this must be a typo...I couldn't understand why it was written 
this way in one spot in not in another...

thanks

- Original Message - 
From: "Adrocknaphobia" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, September 08, 2005 3:40 PM
Subject: SPAM-LOW: Re: Simple CFC quesiton


> You should never refer to the FORM scope from within a component.
> Always refers to #ARGUMENTS.imageName#.
>
> -Adam
>
> On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
>> When using arguments that are not required:
>>
>> 
>>
>> Why do we refer to the argument as #form.imageName# instead of
>> #ARGUMENTS.imageName#, or does it not matter?
>>
>> Matt
>>
>>
>>
>>
>>
>>
>
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217682
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Simple CFC quesiton

2005-09-08 Thread Adrocknaphobia
You should never refer to the FORM scope from within a component.
Always refers to #ARGUMENTS.imageName#.

-Adam

On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote:
> When using arguments that are not required:
> 
> 
> 
> Why do we refer to the argument as #form.imageName# instead of
> #ARGUMENTS.imageName#, or does it not matter?
> 
> Matt
> 
> 
> 
> 
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217680
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Simple CFC quesiton

2005-09-08 Thread Matthew Blatchley
When using arguments that are not required:



Why do we refer to the argument as #form.imageName# instead of 
#ARGUMENTS.imageName#, or does it not matter?

Matt

 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217678
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54