With just that narrow glimpse into what you're doing, I'd say you should be
passing an "indent" down the tree, not a depth.
Yeah, I guess you could say that, but I think I like to pass the "indent" as in
integer. Then I can change the actually indention characters in the custom tag
without hav
With just that narrow glimpse into what you're doing, I'd say you
should be passing an "indent" down the tree, not a depth.
function display(item, indent = "") {
var result = indent & item.value & chr(10);
for (child : item.children) {
result += display(child, indent & " ");
}
return
Ian,
Try ListValueCount() and ListValueCountNoCase()
Ben Nadel
Thanks I thought there was a function like that but my eyes was not seeing it
when I was looking at the list of functions in the documentation.
--
Ian Skinner
Web Programmer
BloodSource
www.Blo
Ian,
Try ListValueCount() and ListValueCountNoCase()
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 25, 2006 4:45 PM
To: CF-Talk
Subject: RE: Recursive Custom Tag
Check out getBaseTagList(). Just
At the very least, the depth should be passed as an argument
That is what I have done in the past, I was just wondering if there was a more
"native" way to do this.
It's not that I want to do something in at one level and something else at
another. But rather, I'm building a recursive display
It's mostly for allowing custom tag collaboration, but it's applicable
here to. However, dependance on the environment is a road to tread
carefully. With collaborative tags, it's a must, but recursion isn't
collaboration.
IMHO, recursion shouldn't care about depth. If depth is important,
then a
Check out getBaseTagList(). Just count how many instance of itself there are.
cheers,
barneyb
Ok that should work; anybody got a neat way to count the instances of a string
in a list? Before I go off and create one of my own.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSo
TED]
Sent: Thursday, May 25, 2006 4:35 PM
To: CF-Talk
Subject: Re: Recursive Custom Tag
Check out getBaseTagList(). Just count how many instance of itself there
are.
cheers,
barneyb
On 5/25/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Is there a built in method to know what iteration
I always just keep count in the rquest scope.
--
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241511
Archives: http://www.houseoffusion.com/cf
Sent: Thursday, May 25, 2006 4:29 PM
To: CF-Talk
Subject: Recursive Custom Tag
Is there a built in method to know what iteration one may be on when working
with a custom tag called recursively?
Or do I need to do this manually by creating and passing some kind of
attribute or some
Check out getBaseTagList(). Just count how many instance of itself there are.
cheers,
barneyb
On 5/25/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Is there a built in method to know what iteration one may be on when working
> with a custom tag called recursively?
>
> Or do I need to do this man
Is there a built in method to know what iteration one may be on when working
with a custom tag called recursively?
Or do I need to do this manually by creating and passing some kind of attribute
or something?
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento,
> You get the cookie today ...
Oreo... mmm lard... :)
> sheesh ...
gezundheit
> I looked and looked through that thing and
> welp that was the problem. I removed:
>
> request.catalog_list[request.count])>
>
> Thanks for opening my eyes ... as I was reading
> it went clear ... funny how tha
You get the cookie today ... sheesh ... I looked and looked through that
thing and welp that was the problem. I removed:
Thanks for opening my eyes ... as I was reading it went clear ... funny how
that works!
Paul Giesenhagen
QuillDesign
> >
> >
> >
> >
> > > "#attributes.path#/
>
>
>
>
>"#attributes.path#/#getChildren.title#">
>
>variables.thisitempath>
>getChildren.sub_object>
>
>request.catalog_list[request.count])>
>
>path="#variables.thisitempath#">
It may be just me, but it looks to me like the is
extraneous... You're appendin
I had asked about this awhile back without response and wanted to try again ... since
the list is quiet, maybe I can get someone to help figure this out for me.
I am having a problem with a custom tag that calls itself until it finds all related
records, once it finds them all it stops. The
16 matches
Mail list logo