Your id is the same in each image, try using an id or something from
your query as the id attribute...

<img src="working.gif" name="statmsg" id="#mylist.somethingunique#" /> 

    document.#mylist.somethingunique#.src = "done.gif";

Oh, and <InvalidTag>?

-----Original Message-----
From: Ed Wong [mailto:[EMAIL PROTECTED] 
Sent: 31 May 2005 14:12
To: CF-Newbie
Subject: Using CF and DIV tags *UPDATE*[Scanned]

Hmm...well...it seems it only replaces the first occurence from the
CFLOOP. Anything afterwards it just displays the "working" image.

<cfloop query="mylist">

<img src="working.gif" name="statmsg" id="statmsg" />

<cfflush>

<cfexecute....

<InvalidTag> 
    document.statmsg.src = "done.gif";
</script>

</cfloop>

Any ideas guys why this is happending?

>Thats exactly what I want. Thanks a million Simon!
>
>Eddie
>
>    
></cfloop>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Captivate from House of Fusion, a Macromedia Authorized Affiliate and 
support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=52

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1045
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to