<cfloop from="1" to="10" index="i"> <script> (function (req) { // all ajax code here.. }) (new XMLHttpRequest()); </script> </cfloop>