Tony Weeg wrote:
> hello all, and good evening (well at least on the east coast)
> 
> does anyone know of a cf-way to put a pause on a page?
> 
> im submitting something to a server, then 8 seconds
> later, i need to poll that server for a response....besides
> the obvious, datediff function, and some cfloop stuff...is
> there an easier way?

Java:

<cfscript>
        interval = 8000; // miliseconds
        waitingThread = createObject("java", "java.lang.Thread");
        waitingThread.currentThread().sleep(interval);
</cfscript>

Just in CFML:

<cfset name = Hash(CreateUUID())/>
<cflock name="#name#" type="readonly" timeout="1">
        <cflock name="#name#" type="exclusive" timeout="8" throwontimeout="No">
        </cflock>
</cflock>

Jochem

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to