This post is more than 2 years old.
<cfset threadlist = ""> <cfloop index="x" from="1" to="5"> <cfset name = "find more cowbell #x#"> <cfset threadlist = listAppend(threadlist, name)> <cfthread name="#name#"> <cfset sleep(3000)> <cflog file="tdemo" text="All done with #thread.name#, baby."> </cfthread> </cfloop>
<cfoutput> <span id="loader"> #repeatString(" ",250)# Please stand by... </span> </cfoutput> <cfflush>
<cfthread action="join" name="#threadlist#" /> <script> document.getElementById('loader').innerHTML = '' </script>