ValueList() would work better for you here.
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funca117.htm#wp11
14236
Mike
> I'm using a query and loop to fill a <body onLoad> statement
> for a _javascript_ image preload.
>
> So far I've got:
>
> <body query="allphotos"
> startrow="1"
> endrow="#allphotos.recordcount#"><cfoutput>'photoslarge/#filen
> amelarge#',</cfoutput></cfloop>)">
>
> This works except that it puts a comma at the end of my list
> and that buggers up my _javascript_. I need it to loop through,
> adding a comma between each imagename but not at the end?
>
> For the life of me, I can't get this to work.
>
> I end up with:
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- looping question Seamus Campbell
- Re: looping question Jennifer Larkin
- Looping Question Mark Leder
- RE: Looping Question Ewok
- SOLVED: Looping Question Mark Leder
- Re: Looping Question joe velez
- RE: Looping Question Cornillon, Matthieu (Consultant)
- RE: Looping Question Mark Leder
- RE: Looping Question Cornillon, Matthieu (Consultant)
- RE: Looping Question Tangorre, Michael
- RE: Looping Question Pascal Peters
- RE: Looping Question Jeffrey Fongemie
- RE: Looping Question John Stanley
- RE: Looping Question Pascal Peters
- RE: Looping Question Tangorre, Michael