2
我在Coldfusion中有一个循环,它会运行很长时间;大约2-4分钟。Colfdfusion循环状态更新Ajax
我想在每次循环运行时显示状态更新。
循环:
<cfloop index="i" from=1 to=70>
<cfset allHtmlFiles=getThirdXml.XmlRoot.XmlChildren[i].XmlChildren[1].XmlText>
<cfset ArrayAppend(seekurl, allHtmlFiles)>
</cfloop>
循环这需要显示数据的护理:
<cfloop index="loopcount" from=1 to=92>
<cfset checkThisUrl = #seekurl[loopcount]#>
<cfset completeUrl ="http://myurl.com/?ids=#checkThisUrl#">
<cfhttp result="get" method="get" url="#completeUrl#">
<cfset nieuw =deserializeJSON(get.filecontent)>
<cfoutput>
<tr>
<cfif nieuw[checkThisUrl].id IS NOT 0>
<td>#nieuw[checkThisUrl].id#</td>
</cfif>
<cfif isDefined("nieuw[checkThisUrl].shares")>
<td style="text-align: right">#nieuw[checkThisUrl].shares#</td>
</cfif>
</tr>
</cfoutput>
</cfloop>
我怎样才能做到在每一个运行的Ajax更新?
谢谢。这确实是一个更好的解决方案。谢谢! – Proto 2011-02-14 10:20:01