in the preload�
<cfset images = ��>
<cfloop query="allphotos">
<cfset images = listappend(images, �'photoslarge/#filenamelarge#'�)
</cfloop>
>
_____
From: Jeffrey Fongemie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 10:55 AM
To: CF-Talk
Subject: Looping Question
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#',</c
foutput></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
> large/St-Francis-de-Asis-Detail-.jpg',)">
I need:
<body
> large/St-Francis-de-Asis-Detail-.jpg')">
Any suggestions?
-Jeff F.
_____
[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=t:4"Todays Threads]
[HYPERLINK "http://www.houseoffusion.com/lists.cfm/link=i:4:177343"This
Message] [HYPERLINK
"http://www.houseoffusion.com/lists.cfm/link=s:4"Subscription] [HYPERLINK
"http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=678.598.4"Fast
Unsubscribe] [HYPERLINK "http://www.houseoffusion.com/signin/"User Settings]
[HYPERLINK
"https://www.paypal.com/cgi-bin/webscr?amount=&item_name=House+of+Fusion&bus
iness=donations%40houseoffusion.com&undefined_quantity=&cmd=_xclick"Donation
s and Support]
_____
HYPERLINK "http://www.houseoffusion.com/banners/view.cfm?bannerid=35" \n
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

