Ask a Question related to Macromedia ColdFusion, Design and Development.
-
braseth #1
Is there a "Status Bar" in CF?
Is there a tag that I can display a processing bar on a page while the user waits for it to be rendered? I have a page that takes a little while to run, and thought it would be nice.
braseth Guest
-
#39052 [NEW]: pdo::query with "show slave/master status"
From: xing at mac dot com Operating system: Linux PHP version: 5.1.6 PHP Bug Type: PDO related Bug description: pdo::query... -
#39052 [Opn->Fbk]: pdo::query with "show slave/master status"
ID: 39052 Updated by: tony2001@php.net Reported By: xing at mac dot com -Status: Open +Status: ... -
Webservice problem: "The Request failed with http status 401"
Okay, I'm writing a plugin for Outlook 2003 using C# and the .Net framework. In this plugin I'm opening a windows form that should fetsch some data... -
#25044 [Opn->Csd]: header("Location:") changing HTTP status
ID: 25044 Updated by: helly@php.net Reported By: seairth at cox dot net -Status: Open +Status: ... -
#25044 [NEW]: header("Location:") changing HTTP status
From: seairth at cox dot net Operating system: N/A PHP version: Irrelevant PHP Bug Type: HTTP related Bug description: ... -
Fernis #2
Re: Is there a "Status Bar" in CF?
You can use <CFFLUSH> tag for this. That tag will flush the content generated
so far to the screen - or periodically after a certain amount of output data.
In the beginning of the page, have an area where you want to display any
notifications of the progress. This might be a borderless text input field in a
form, or an image which you stretch (appearing as a progress bar) as the CF
makes its progress.
Have a CFFLUSH tag between the progress bar area and any time consuming CF
processing (possibly queries and loops?).
At convenient points, place javascript which updates the contents of the
progress bar (or progress notification text), and CFFLUSH again. If you have
several long queries, you might want to refresh the progress notification after
each query. If you have a long loop, you might want to GROUP (see SQL and
CFOUTPUT documentation) your SQL query and CFOUTPUT, so that you can
automatically CFFLUSH at each group iteration. If you don't want to use
GROUPing, you can always insert a condition inside loops, which will every now
and then update your progress information field.
<cfloop .... blah blah >
<cfif currentrow MOD 10000 eq 0>
<script>
document.getElementById('myProgressField').value=' #currentrow# items processed'
</script>
<CFFLUSH>
</cfif>
<!--- running a condition on every row is of course bad for the performance.
You'll be the judge, if it pays off --->
</cfloop>
As I mentioned above, any clever method which doesn't involve a separate
<CFIF> which you run a zillion times, is better than the code "example" here.
Fernis Guest
-
michaelmuller #3
Re: Is there a "Status Bar" in CF?
Would this be an appropriate use of technology for large-file upload pages? I
have a site that allows users to upload video files that can reach into the GB
sometimes. The browser bars are useless at that point. I'm looking for some
sort of upload status bar or simple indicator that something is still going
on...
michaelmuller Guest



Reply With Quote

