I did finally find one more use for the THIS scope; in CFAJAX, it can
be used to create a component that, when returned to the browser via
the CFAJAX engine, behaves the way people expect structures to behave
(i.e. named keys to the elements of a JS object).

Strangely enough, structures themselves don't behave this way. Go figure.

On 3/31/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
> Snake wrote:
> > Surely the THIS scope is local to the object (CFC) ?
>
> no it's not. the "this" scope should probably only be used if your CFC has an
> init method where you'd "return this" to send back the whole kit & kaboodle 
> back
> to the caller. if you want a scope that's "global" to the whole CFC use the
> unnamed/variables scope.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236647
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

Reply via email to