In summary, put your message in a div tag, and then use code at the BOTTOM
of the page to blank out the div tag. Here's sample code:
At the top of the page:
<body>
<div id="hide_me" class="warningmsg">Please wait while looking up
options...</div>
<cfflush><!--- MUST flush this text to the browser, else CF queues it up and
sends ALL the page AFTER the ENTIRE page is done, which does you no good for
the "please wait" message--->
At the bottom of the page, after all the long queries are done, then use
java to blank out the text in that div tag:
<script LANGUAGE="JAVASCRIPT" TYPE="text/javascript">
<!--
<cfinclude template="/java/ggh_set_div.cfm">
ggh_set_div('document', 'hide_me', '');
//-->
</script>
</body>
Where the java function ggh_set_div looks like:
<cfif not isdefined("javainc.ggh_set_div")>
<cfset javainc.ggh_set_div = 1>
//usage: this function sets the value of a div tag, using browser specific
methodology
//parameters: document_name_reference = a string reference to the document
div tag resides in, eg DOM reference "window.document"
// div_name = the plain text name of the div tag
(NO SPACES or special
characters please!!!)
// set_value = the value (or blank string) to
assign to the div tag
function ggh_set_div(document_name_reference, div_name, set_value) {
my_document = eval(document_name_reference);
if (my_document.all) {
my_document.all(div_name).innerText = set_value;
} else if (my_document.getElementById) {
my_document.getElementById(div_name).childNodes[0].nodeValue =
set_value;
}
} //function ggh_set_div()
</cfif>
Terry Fielder
Network Engineer
Great Gulf Homes / Ashton Woods Homes
[EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, March 19, 2002 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: [CFTALKTor] Processing Page
>
>
>
> Hi y'all,
>
> Does anyone know how to display a "Searching our records..." message
> from when a form submits until it returns the results?
>
> Thanks in advance for any responses
> Rob Smith
> CAmagazine
>
>
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: [EMAIL PROTECTED]
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED])
> http://www.CFUGToronto.org/
> This System has been donated by Infopreneur, Inc.
> (http://www.infopreneur.net)
>
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: [EMAIL PROTECTED]
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)