Thats exactly what I want. Thanks a million Simon!
Eddie
> Hi Ed,
>
> Even though I'm just a newbie, I hope I can still help. I haven't yet
> used <cfexecute> for processes that take a while to execute, but I
> think ColdFusion will not send the rest of the HTML (you're using HTML,
> right?) to the client unless the preceding <cfexecute> finishes.
>
> Therefore, perhaps this solution would work:
>
> <img src="status_msg.gif" name="statmsg" id="statmsg" />
> <cfflush>
> <cfexecute...
> </Xcript>
> document.statmsg.src = "done.gif";
> </Xcript>
>
> After <cfexecute> finishes, we just use JavaScript to dynamically
> change the image.
>
> Regards,
>
> [ simon.cpu ]
>
>
> > Hi again,
> >
> > Things have changed a little. Now I am reading in an external file
> and
> > then looping throught the list and sending each file to a CFEXECUTE
>
> > for further processing. I want to have a gif displayed saying "work
> in
> > progress" while the CFEXECUTE is running and then when it done have
>
> > that image replaced with "done". I can't seem to get it to work.
> Maybe
> > DIV tags are not what I should be using. Is there another way of
> doing
> > this. Note, that the page does not ger refreshed. Everything gets
> > display on the same template. This is what I have so far.
> >
> > <cfloop query="mylist">
> >
> > <div id="work" style="inline"><img src="ip.gif" alt=""></div>
> >
> > <cfflush>
> >
> > <cfexecute...
> >
> > <div id="done" style="inline"><img src="done.gif" alt=""></div>
> >
> >
</cfloop>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1043
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