This is something that we use where I work:

<cfparam name="url.directory" default="">
<cfparam name="url.page" default="">
<cfparam name="url.queryString" default="">
<cfparam name="speed" default="5000">


<html>

<head>
 <title>Please Wait...</title>
 <script language="JavaScript">
    var URL   = "<cfoutput>#basehref#/#url.directory#<cfif
Trim(url.directory) NEQ "">/</cfif>#url.page#?#url.queryString#</cfoutput>";
    var speed = <cfoutput>#speed#</cfoutput>;

    function reload() {
        location = URL
    }

    setTimeout("reload()", speed);
 </script>
</head>

<body>
 <div align="center">
  <table width="640" border="0" cellSpacing="0" cellPadding="0">
   <tr>
    <td align="center" vAlign="middle" width="100%" height="480">
     <object id="loading"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0
,0"
       id="loading" width="197" height="52" VIEWASTEXT>
       <param name="movie"
value="<cfoutput>#imghref#</cfoutput>/loading.swf">
       <param name="quality" value="high">
       <param name="bgcolor" value="#FFFFFF">
       <embed name="loading"
src="<cfoutput>#imghref#</cfoutput>/loading.swf" quality="high"
bgcolor="#FFFFFF"
         width="197" height="52"
         type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash">
       </embed>
     </object>
    </td>
   </tr>
  </table>
 <div>
</body>

</html>

Just cfinclude this on the calling page. For instance, we use this on a
login page. While you are being logged in, we show a small flash movie that
says, Loggin In, Please Wait. It has a little animation so that the users
know that someting is happening.

HTH,

Bruce

----- Original Message -----
From: "Peter Bagnato" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, December 14, 2002 8:22 AM
Subject: Page is Loading message...


> Hello,
>
> I have several CF templates that take quite some time to process.
>
> Can someone tell me how I can include an animated gif to display 'Page
> is loading' while the template is being processed so that the page
> visitors don't have to stare at a blank screen while it is being
> processed?
>
> A pop-up window displaying the same message would work just fine also...
>
> Thanks!
> Peter Bagnato
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to