<!--- **************************** --->
<!--- wait.cfm --->
<html>
<head>
<title>Please Wait Message</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>
<body>
<p>You can use a combination of <cfflush>
and javascript to show a message on the screen while processing a large data
set (or any other long-running task).</p>
<!--- use cfflush to display the 'wait'
message right away --->
<cfflush interval="1">
<!--- show the message saying there
will be a delay --->
<p id="wait"
style="color:red; background-color: #CCCCCC; width:
200px; height: 50px;">Please wait while the data is processed.</p>
<!--- process your long-running
query or script (or anything) --->
<cfset total = 0>
<cfloop from="1" to="10000"
index="i">
<cfset total = total + 1>
</cfloop>
<!--- after the process is done, use
javascript to remove the 'wait' message --->
<script>
if (document.getElementById) {
wait.style.display="none";
}
</script>
<!--- now display the result --->
<p>The total is<cfoutput>#total#</cfoutput>.</p>
<p>Keep in mind
that this may not work if you have a lot of nested tables since ColdFusion can't
return results unless the ending tags can be flushed as well.</p>
</body>
</html>
-
Add a newsfeed to your site
Use the Moreover news service to add a news
feed to your site using cfhttp and wddx in 5 minutes!
Author: Nathan Miller
Views: 24,948
Posted Date: Saturday, July 26, 2003
-
Advanced Server-Side FORM Validation
An advanced set of customizable tags for validating FORM values on the Server-side using User-Defined Functions
Author: Nathan Miller
Views: 22,072
Posted Date: Monday, December 15, 2003
-
Automatically build a FORM using SQL Server system tables
Use SQL server's system tables to automatically create a form to insert data into your database.
Author: Nathan Miller
Views: 28,363
Posted Date: Monday, May 19, 2003
-
ColdFusion Content Injection
Inject customized content into predefined messages by adding specially formatted placeholders in the message.
Author: Nathan Miller
Views: 11,815
Posted Date: Wednesday, March 28, 2007
-
Coldfusion Master Pages
Use ASP.NET-style master pages to replace your header/footer files for web page layout
Author: Nathan Miller
Views: 11,920
Posted Date: Wednesday, August 30, 2006
-
DHTML Tabs (Part 1 of 2)
Visual tab control generator - Creates an interface that loads all the data in each tab in a single page request. This allows the users to click on each tab in the interface and instantly see the data on that tab without waiting for it to load.
Author: Nathan Miller
Views: 12,010
Posted Date: Wednesday, October 26, 2005
-
Dynamically add and remove a 'please wait' message to your complex pages
You can use a combination of and javascript to show a message on the screen
while processing a large data set (or any other long-running task), and then remove the message when the task is complete.
Author: Nathan Miller
Views: 35,503
Posted Date: Tuesday, January 13, 2004
-
Easy automatic debugging
Extend the use of the new tag in CF5
to display any and all ColdFusion and CGI variables.
Author: Nathan Miller
Views: 15,345
Posted Date: Saturday, December 21, 2002
-
Pass complex data in a hidden form field with Base64
Use Base64 to pass html or large blocks of text in a form post without using session variables.
Author: Nathan Miller
Views: 10,516
Posted Date: Friday, March 31, 2006
-
Scope your variables
Increase performace and readability by always scoping your variables
Author: Nathan Miller
Views: 26,171
Posted Date: Monday, May 19, 2003
-
The better way to handle session variables
You can use these simple loops in place of many lines of code to clear out or delete session variables
Author: Nathan Miller
Views: 23,869
Posted Date: Monday, May 19, 2003