RE: Page is Loading message...
Thanks, Dave! Your code works PERFECTLY Peter Bagnato -Original Message- From: Dave Babbitt [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 11:51 AM To: CF-Talk Subject: RE: Page is Loading message... Importance: High body !--- Your header here --- cfflush table border=0 cellpadding=0 cellspacing=0 id=PleaseWaitMessage width=100% trtd align=center valign=bottom span style=font-size: 17px; font-family: verdana,arial,helvetica,sans-serif; font-weight: 400; b br / br / Processing #Variables.PageTitle# !--- Paypal's animated gif, for instance... --- img align=baseline border=0 height=12 src=http://www.paypal.com/images/period_ani.gif; width=20 / /b/span/td/tr/table cfflush !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script !--- Your footer here --- /body -Original Message- [snip] 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? []snip] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Re: Page is Loading message...
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 titlePlease 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-44455354 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=#FF embed name=loading src=cfoutput#imghref#/cfoutput/loading.swf quality=high bgcolor=#FF 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=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Page is Loading message...
body !--- Your header here --- cfflush table border=0 cellpadding=0 cellspacing=0 id=PleaseWaitMessage width=100% trtd align=center valign=bottom span style=font-size: 17px; font-family: verdana,arial,helvetica,sans-serif; font-weight: 400; b br / br / Processing #Variables.PageTitle# !--- Paypal's animated gif, for instance... --- img align=baseline border=0 height=12 src=http://www.paypal.com/images/period_ani.gif; width=20 / /b/span/td/tr/table cfflush !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script !--- Your footer here --- /body -Original Message- [snip] 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? []snip]
Re: Page is Loading message...
Dave Babbitt wrote: !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script That is a MS'ism that won't work in other browsers, the standard way is to use getElementById(). If you must support non-conforming browsers (e.g. Opera) use: script type=text/javascript if(document.getElementById) { document.getElementById('PleaseWaitMessage').style.display='none'; } else { document.all.PleaseWaitMessage.style.display='none'; } /script Jochem ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
RE: Page is Loading message...
-Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 12:16 PM To: CF-Talk Subject: Re: Page is Loading message... Dave Babbitt wrote: !--- All the stuff that takes a long to process here --- script type=text/jscript document.all.PleaseWaitMessage.style.display='none'; /script That is a MS'ism that won't work in other browsers, the standard way is to use getElementById(). If you must support non-conforming browsers (e.g. Opera) use: script type=text/javascript if(document.getElementById) { document.getElementById('PleaseWaitMessage').style.display='none'; } else { document.all.PleaseWaitMessage.style.display='none'; } /script Actually just the first is needed (you don't need the else, I believe, as IE unstands both syntaxs). So, basically, just use getElementById and you should be all set for most modern browsers. Jim Davis ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm