--0-221558440-974323334=:27525
Content-Type: text/plain; charset=us-ascii


Using nested fuses, your calling page may actually be a called page. Also... for 
consitencey the whole idea of the formurl2attributes tag.... your calling page will 
have all vars passed into it as attributes scoped. 
  Rick Lamb <[EMAIL PROTECTED]> wrote: 
I would never scope a variable as attribute on the calling page unless we're
talking about nested custom tags. The only way I ever end up with variables
in the attribute scope is when I call a custom tag with parameters(these
parameters then because attribute variables in the custom tag). Why would
you use an attribute scope on the calling page? I don't see why.

Rick

-----Original Message-----
From: Fred T. Sanders [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 8:58 AM
To: Fusebox
Subject: Re: Variable Scoping


you wouldn't except that you may be changing or updating a variable on the
calling page that's already been scoped as an attribute.

Fred

----- Original Message -----
From: "Rick Lamb" 
To: "Fusebox" 
Sent: Tuesday, November 14, 2000 5:54 PM
Subject: RE: Variable Scoping


> Ok, I see what your saying. I guess I just don't see why you would ever
need
> to set the variable to the attribute scope on the caller page. But it
makes
> sense that you can.
>
> Rick
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 4:20 PM
> To: Fusebox
> Subject: RE: Variable Scoping
>
>
>
> Rick,
>
> Since Greg (the original poster) said that he was using his act_ file like
> a custom tag, I assumed -- uh, oh -- that he is actually calling the page
> like a custom tag: e.g. or with a
> CFModule call. If that is the case, then if he wanted to set an
> "attributes." scoped variable in the calling template, then within the
> custom tag page he would need to set "Caller.Attributes.VarName".
>
> If he isn't actually doing a cfmodule or custom tag call to his act_ file,
> then your statement would be valid; he would end up with a variable with
> "Caller." scope and his subsequent act_ and dsp_ files aren't likely to
> find it if they're looking for "attributes." vars.
>
> Kevin
>
> --------------------------
> Kevin Marshall
> Certified ColdFusion Developer
> eCalton.com, Inc.
> Vero Beach, FL
> www.ecalton.com
> [EMAIL PROTECTED]
> 561.569.4500
>
>
>
>
> rlamb@hostwor
> ks.com (Rick To: Fusebox
> 
> Lamb) cc:
> Subject: RE: Variable Scoping
> 11/14/00
> 03:17 PM
> Please
> respond to
> fusebox
>
>
>
>
>
> I really don't understand caller.attributes.variable. Maybe somebody could
> explain why you would ever do this? Or if it would really work. And on
this
> topic, is it possible to assign any name for a scope of a variable? Like
> myvariables.variable? Cause it seems like this is what you would be doing
> by
> using caller.attribute.variable. caller would be the scope, attribute
would
> be your custom named scope, and variable would be the variable name. Am I
> just confused here or what?
>
> Thanks,
>
> Rick
>
> -----Original Message-----
> From: Fred T. Sanders [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 2:13 PM
> To: Fusebox
> Subject: Re: Variable Scoping
>
>
> It would really depend on what you wanted the tag to do.
> In your case none of them really apply. As your already using it to set a
> persistant variable.
>
> If you were using the tag to update an attribute. scoped variable already
> in
> place on the calling template/tag it would be
> caller.attributes.somevar
>
> If you were using it to update a request. scoped variable (variable that's
> alive for the duration of the page request) no caller. is needed as
> request.
> scoped variable will cross tag boundaries so it would just be
> request.somevar.
>
> If the tag is just setting a local variable used by the calling template
> then its just caller.somevar.
>
> Hope this helps
>
> Fred T. Sanders
> Charlottesville, VA
> -------------------------------------------
> Programmers don't lie...
> They just can't tell time.
>
>
>
> ----- Original Message -----
> From: "Greg Wolfinger" 
> To: "Fusebox" 
> Sent: Tuesday, November 14, 2000 2:14 PM
> Subject: Variable Scoping
>
>
> > Hey Guys:
> >
> > I've just started to research the fusebox methodologies and have found =
> > them very helpful. I picked up a copy of the new book when I was at the
> =
> > developer conference last week. The only part that is really throwing =
> > me off is the variable scoping.
> >
> > It says to use the Attributes and Request scoping for variables. Say I
=
> > had a action file (act_nav-trail.cfm) that is used like a custom tag to
=
> > create or append a session variable that keeps track of the users =
> > navigation throughout the site.
> >
> > That action file spits back to the calling template (i.e. the index.cfm
=
> > file) a variable called navTrail that is then passed to my display =
> > (dsp_nav-trail.cfm) file. In the action file should I set the variable
=
> > to Caller.Request.navTrail or Caller.Attributes.navTrail or just =
> > Caller.navTrail?? Thanks, also if you know of any really good visuals on
> =
> > the web that helps dipict the fusebox scoping methodologies it would be
=
> > most appreciated.
> >
> > Best Regards,
> >
> >
> > Greg
> >
>
>
>
>
>
> --------------------------------------------------------------------------
--
> --
> 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.

Patrick Trongo
  Sr Programmer/Analyst 
  4Anything Network (www.4anything.com)
  487 Devon Park Road Suite 204 
  Wayne, PA 19087 
  Telephone: 610-768-1444 Ext 204 
  Fax: 610-592-1094


---------------------------------
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
--0-221558440-974323334=:27525
Content-Type: text/html; charset=us-ascii

<P>Using nested fuses, your calling page may actually be a called page. Also... for 
consitencey the whole idea of the formurl2attributes tag.... your calling page will 
have all vars passed into it as attributes scoped. 
<P>&nbsp; <B><I>Rick Lamb &lt;[EMAIL PROTECTED]&gt;</I></B> wrote: <BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px 
solid">I would never scope a variable as attribute on the calling page unless 
we're<BR>talking about nested custom tags. The only way I ever end up with 
variables<BR>in the attribute scope is when I call a custom tag with 
parameters(these<BR>parameters then because attribute variables in the custom tag). 
Why would<BR>you use an attribute scope on the calling page? I don't see 
why.<BR><BR>Rick<BR><BR>-----Original Message-----<BR>From: Fred T. Sanders 
[mailto:[EMAIL PROTECTED]]<BR>Sent: Wednesday, November 15, 2000 8:58 AM<BR>To: 
Fusebox<BR>Subject: Re: Variable Scoping<BR><BR><BR>you wouldn't except that you may 
be changing or updating a variable on the<BR>calling page that's already been scoped 
as an attribute.<BR><BR>Fred<BR><BR>----- Original Message -----<BR>From: "Rick Lamb" 
<[EMAIL PROTECTED]><BR>To: "Fusebox" <[EMAIL PROTECTED]><BR>Sent: Tuesday, 
November 14, 2000 5:54 PM<BR>Subject: RE: Variable Scoping<BR><BR><BR>&gt; Ok, I see 
what your saying. I guess I just don't see why you would ever<BR>need<BR>&gt; to set 
the variable to the attribute scope on the caller page. But it<BR>makes<BR>&gt; sense 
that you can.<BR>&gt;<BR>&gt; Rick<BR>&gt;<BR>&gt; -----Original Message-----<BR>&gt; 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]<BR>&gt; Sent: 
Tuesday, November 14, 2000 4:20 PM<BR>&gt; To: Fusebox<BR>&gt; Subject: RE: Variable 
Scoping<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Rick,<BR>&gt;<BR>&gt; Since Greg (the original 
poster) said that he was using his act_ file like<BR>&gt; a custom tag, I assumed -- 
uh, oh -- that he is actually calling the page<BR>&gt; like a custom tag: e.g. 
<CF_ACT_NAV-TRAIL foo="blah...etc">or with a<BR>&gt; CFModule call. If that is the 
case, then if he wanted to set an<BR>&gt; "attributes." scoped variable in the calling 
template, then within the<BR>&gt; custom tag page he would need to set 
"Caller.Attributes.VarName".<BR>&gt;<BR>&gt; If he isn't actually doing a cfmodule or 
custom tag call to his act_ file,<BR>&gt; then your statement would be valid; he would 
end up with a variable with<BR>&gt; "Caller." scope and his subsequent act_ and dsp_ 
files aren't likely to<BR>&gt; find it if they're looking for "attributes." 
vars.<BR>&gt;<BR>&gt; Kevin<BR>&gt;<BR>&gt; --------------------------<BR>&gt; Kevin 
Marshall<BR>&gt; Certified ColdFusion Developer<BR>&gt; eCalton.com, Inc.<BR>&gt; Vero 
Beach, FL<BR>&gt; www.ecalton.com<BR>&gt; [EMAIL PROTECTED]<BR>&gt; 
561.569.4500<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; rlamb@hostwor<BR>&gt; ks.com 
(Rick To: Fusebox<BR>&gt; <[EMAIL PROTECTED]><BR>&gt; Lamb) cc:<BR>&gt; 
Subject: RE: Variable Scoping<BR>&gt; 11/14/00<BR>&gt; 03:17 PM<BR>&gt; Please<BR>&gt; 
respond to<BR>&gt; fusebox<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; I really 
don't understand caller.attributes.variable. Maybe somebody could<BR>&gt; explain why 
you would ever do this? Or if it would really work. And on<BR>this<BR>&gt; topic, is 
it possible to assign any name for a scope of a variable? Like<BR>&gt; 
myvariables.variable? Cause it seems like this is what you would be doing<BR>&gt; 
by<BR>&gt; using caller.attribute.variable. caller would be the scope, 
attribute<BR>would<BR>&gt; be your custom named scope, and variable would be the 
variable name. Am I<BR>&gt; just confused here or what?<BR>&gt;<BR>&gt; 
Thanks,<BR>&gt;<BR>&gt; Rick<BR>&gt;<BR>&gt; -----Original Message-----<BR>&gt; From: 
Fred T. Sanders [mailto:[EMAIL PROTECTED]]<BR>&gt; Sent: Tuesday, November 14, 2000 2:13 
PM<BR>&gt; To: Fusebox<BR>&gt; Subject: Re: Variable Scoping<BR>&gt;<BR>&gt;<BR>&gt; 
It would really depend on what you wanted the tag to do.<BR>&gt; In your case none of 
them really apply. As your already using it to set a<BR>&gt; persistant 
variable.<BR>&gt;<BR>&gt; If you were using the tag to update an attribute. scoped 
variable already<BR>&gt; in<BR>&gt; place on the calling template/tag it would 
be<BR>&gt; caller.attributes.somevar<BR>&gt;<BR>&gt; If you were using it to update a 
request. scoped variable (variable that's<BR>&gt; alive for the duration of the page 
request) no caller. is needed as<BR>&gt; request.<BR>&gt; scoped variable will cross 
tag boundaries so it would just be<BR>&gt; request.somevar.<BR>&gt;<BR>&gt; If the tag 
is just setting a local variable used by the calling template<BR>&gt; then its just 
caller.somevar.<BR>&gt;<BR>&gt; Hope this helps<BR>&gt;<BR>&gt; Fred T. 
Sanders<BR>&gt; Charlottesville, VA<BR>&gt; 
-------------------------------------------<BR>&gt; Programmers don't lie...<BR>&gt; 
They just can't tell time.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; ----- Original Message 
-----<BR>&gt; From: "Greg Wolfinger" <[EMAIL PROTECTED]><BR>&gt; To: 
"Fusebox" <[EMAIL PROTECTED]><BR>&gt; Sent: Tuesday, November 14, 2000 2:14 
PM<BR>&gt; Subject: Variable Scoping<BR>&gt;<BR>&gt;<BR>&gt; &gt; Hey Guys:<BR>&gt; 
&gt;<BR>&gt; &gt; I've just started to research the fusebox methodologies and have 
found =<BR>&gt; &gt; them very helpful. I picked up a copy of the new book when I was 
at the<BR>&gt; =<BR>&gt; &gt; developer conference last week. The only part that is 
really throwing =<BR>&gt; &gt; me off is the variable scoping.<BR>&gt; &gt;<BR>&gt; 
&gt; It says to use the Attributes and Request scoping for variables. Say 
I<BR>=<BR>&gt; &gt; had a action file (act_nav-trail.cfm) that is used like a custom 
tag to<BR>=<BR>&gt; &gt; create or append a session variable that keeps track of the 
users =<BR>&gt; &gt; navigation throughout the site.<BR>&gt; &gt;<BR>&gt; &gt; That 
action file spits back to the calling template (i.e. the index.cfm<BR>=<BR>&gt; &gt; 
file) a variable called navTrail that is then passed to my display =<BR>&gt; &gt; 
(dsp_nav-trail.cfm) file. In the action file should I set the variable<BR>=<BR>&gt; 
&gt; to Caller.Request.navTrail or Caller.Attributes.navTrail or just =<BR>&gt; &gt; 
Caller.navTrail?? Thanks, also if you know of any really good visuals on<BR>&gt; 
=<BR>&gt; &gt; the web that helps dipict the fusebox scoping methodologies it would 
be<BR>=<BR>&gt; &gt; most appreciated.<BR>&gt; &gt;<BR>&gt; &gt; Best Regards,<BR>&gt; 
&gt;<BR>&gt; &gt;<BR>&gt; &gt; Greg<BR>&gt; 
&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
--------------------------------------------------------------------------<BR>--<BR>&gt;
 --<BR>&gt; To Unsubscribe visit<BR>&gt; 
http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox or<BR>&gt; 
send a message to [EMAIL PROTECTED] with 'unsubscribe' in<BR>&gt; the 
body.<BR>&gt;<BR>&gt; 
--------------------------------------------------------------------------<BR>----<BR>&gt;
 To Unsubscribe 
visit<BR>http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox 
or<BR>send a message to [EMAIL PROTECTED] with 'unsubscribe' in<BR>the 
body.<BR>&gt;<BR><BR>----------------------------------------------------------------------------<BR>--<BR>To
 Unsubscribe 
visit<BR>http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox 
or<BR>send a message to [EMAIL PROTECTED] with 'unsubscribe' in<BR>the 
body.<BR><BR>------------------------------------------------------------------------------<BR>To
 Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.</BLOCKQUOTE><BR><BR>Patrick Trongo<br>  Sr Programmer/Analyst <br>  4Anything 
Network (www.4anything.com)<br>  487 Devon Park Road Suite 204 <br>  Wayne, PA 19087 
<br>  Telephone: 610-768-1444 Ext 204 <br>  Fax: 610-592-1094<p><br><hr size=1><b>Do 
You Yahoo!?</b><br>
<a href="http://calendar.yahoo.com/">Yahoo! Calendar</a> - 
Get organized for the holidays!
--0-221558440-974323334=:27525--
------------------------------------------------------------------------------
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.

Reply via email to