Matthew,

Simple, but you can take it from there (if you're using AJAX to  
display the results of the call you can skip the show/hide of the div):

<script type="text/javascript" language="javascript">
<cfsilent>
<cfsavecontent variable="message">
<h2>Thank You.  We Are Processing the information you have requested</ 
h2>
<p class="notice">Please Stand By.....</p>
<div align="center"><img src="loading.gif" alt="loading"/></div>
</cfsavecontent>
</cfsilent>
<cfwddx action="cfml2js" input="#message#"  
toplevelvariable="procmessage" />
function showProcess() {
pcontent = document.getElementById("processing");
fcontent = document.getElementById("yourForm");
fcontent.style.display = "none";
pcontent.style.display = "block";
pcontent.innerHTML = procmessage;
}
</script>

div#processing is obviously set with style="display:none" when the  
page loads.

- Jon

On Nov 27, 2006, at 11:57 PM, Matthew Chambers wrote:

> Hi guys,
>
> Does anyone have some reliable code which can be used so that I can  
> display a loading or searching message whilst I am waiting for a  
> web service call to return data?
>
> Cheers
> Matthew



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261821
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to