Pretty simple - you can use the cfflush on the slow page as Ray describes but I 
also put it on forms or pages that call slow pages.

Say that you have a page that displays a form and the form calls a slow page.
Add a onclick event on the button that submits the form.  When the user clicks 
on the submit button, it changes the current view to the waiting image.  This 
will also keep folks from clicking on submit twice thinking the first click 
didn't do anything.

<span id="loader" style="display:none;">
  <img src="loading.gif" alt="Please Wait">
</span>

<form action="..." id="fileuploader">
 <input type="file" name="topsecretfile">

<input type="Submit" 
value="Upload"  
onclick="document.getElementById('fileuploader').style.display='none';
document.getElementById('loader').style.display='';">
</form>
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:262038
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to