Hi,

There is no need for the call to be truly asynchronous. The problem at the 
moment is that the call can sometimes take up to 40 seconds so the customer is 
not sure that something is happening. I would prefer if when the user hits 
submit button on the form I take them to a page that has a "loading" message 
and then forward them on to the result page once the page has loaded.

Someone out there must have a rock solid solution to this! Most of the airlines 
have some sort of "loading" page!

Cheers
Matthew

>You can actually use specific AJAX status codes to determine the calls
>status (2,3,4... If I remember correctly).
>
>I think you will need to use AJAX if you want true loading status as the
>browsers spinning globe etc is supposed to be used to tell the user a
>page/request is loading..
>
>Do you need the call to be truly asynchronous (so you can do other things?)
>
>
>
>
>
>
>"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
>Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
>Registered in England, Number 678540.  It contains information which is
>confidential and may also be privileged.  It is for the exclusive use of the
>intended recipient(s).  If you are not the intended recipient(s) please note
>that any form of distribution, copying or use of this communication or the
>information in it is strictly prohibited and may be unlawful.  If you have
>received this communication in error please return it to the sender or call
>our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
>communication are not necessarily those expressed by Reed Exhibitions." 
>Visit our website at http://www.reedexpo.com
>
>-----Original Message-----
>From: Jon Clausen
>To: CF-Talk
>Sent: Tue Nov 28 07:29:44 2006
>Subject: Re: Loading page
>
>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:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:261963
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