How's this play?
<body >
query="allphotos">'photoslarge/#filenamelarge#'<cfif currentrow LT
allphotos.recordcount>,</cfif></cfoutput>)">
Greg
----- Original Message -----
From: Jeffrey Fongemie <[EMAIL PROTECTED]>
Date: Tue, 7 Sep 2004 10:55:26 -0400
Subject: Looping Question
To: CF-Talk <[EMAIL PROTECTED]>
Hi everyone,
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/#filenamelarge#',</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:
<body >
I need:
<body >
Any suggestions?
-Jeff F.________________________________
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Anyone know what to do about this please? Error Establi... Mike Kear
- Anyone know what to do about this please? Error es... Mike Kear
- RE: Anyone know what to do about this please? ... Jason L. West, Sr.
- Looping Question Jeffrey Fongemie
- RE: Looping Question Greg Luce
- RE: Looping Question Ewok
- Re: Anyone know what to do about this please? ... Jochem van Dieten