Is there a "Status Bar" in CF?

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. #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...
    2. #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: ...
    3. 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...
    4. #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: ...
    5. #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: ...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139