I've updated the dummy data in my example to include multiple depths (i.e nesting) http://neokoenig.pastebin.com/nGBphKVN
T On 26 August 2010 16:27, Tom King <mailingli...@oxalto.co.uk> wrote: > Hi John, > That's fine when you just want a straight: > > <ul> > <li>Something</li> > </ul> > > But I'm trying to build something with nested ul/ol's from the same query > object.. > > T > > On 26 August 2010 16:22, John M Bliss <bliss.j...@gmail.com> wrote: > >> >> <ul> >> <cfoutput query="MyQuery"> >> <li>#MyQuery.MyColumn#</li> >> </cfoutput> >> </ul> >> >> On Thu, Aug 26, 2010 at 10:18 AM, Tom King <mailingli...@oxalto.co.uk >> >wrote: >> >> > >> > Hi all, >> > Having not found an existing function to do this (output a query object >> as >> > a >> > nested ol or ul), I thought I'd try my own hand at it - I'm *so* close. >> > Yet, >> > not quite there. >> > >> > Basically, my mind has given up trying to get the logic correct in when >> to >> > close </li> elements. It works most of the time, but if I say have a >> nested >> > list, it gets a bit confused and doesn't close the </li> - So XHTML >> throws >> > a >> > wobbly. >> > >> > Can anyone see where I'm going wrong? (or better still, happen to have a >> > function which does something similar I might adapt?) >> > >> > Here's some dummy data and the function: >> > http://neokoenig.pastebin.com/k7EQ8B98 >> > >> > Thanks in advance for any insight... >> > >> > T >> > >> > >> > >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336577 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm