Temporary message to user waiting the result of thequery

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Temporary message to user waiting the result of thequery

    Hello,

    I am generating dispalying the result of a many records (1619x1619)
    crosstabbed; is there a way to show a message (html) asking the user to wait
    the result of his page? this message should be hidden when the result is
    displayed...

    I am not sure to be clear, but it is sunday evening and it is pretty warm
    today in my office...

    maquejp Guest

  2. Similar Questions and Discussions

    1. Draft deleted but user still waiting for it.
      My co-worker sent me edits to the homepage to edit or approve via Contribute. I then chose to delete the draft via Contribute as the changes were...
    2. Get result from temporary Oracle Table
      Hi, Having problem with temporary table from Oracle. Runing my stored procedure (which stores an amount of row in a temporary table) from an Sql...
    3. Launch a system command without waiting for the result
      Hi, I'd like to run a DOS command with PHP without waiting for the result as system() did. My command takes a bit of time and I get a timeout...
    4. HELP - User threads "Waiting on a buffer"
      All, We are running into an issue with IDS 7.31.UD4 engine. We are running some load testing against our applications, and we notice that...
    5. User defined function causes empty result set
      I have created a UDF that takes an INTEGER as parameter and returns a VARCHAR. Whenever I try to use the function in a SELECT, it causes the SELECT...
  3. #2

    Default RE: Temporary message to user waiting the result of thequery

    One way to do it is attached.


    <CFOUTPUT>
    <h1 id="FriendlyStatusMessage">I'm busy! Wait...</h1>
    </CFOUTPUT>

    <CFFLUSH>

    *** Finish big long query here. ***


    <CFOUTPUT>
    <script type="text/javascript">
    var zStatDiv = document.getElementById
    ? document.getElementById ("FriendlyStatusMessage")
    : document.all? document.all["FriendlyStatusMessage"]
    : alert ('Your browser needs to be replaced with
    FireFox.')

    zStatDiv.style.display="none"
    </script>
    </CFOUTPUT>

    *** Finish page display here. ***

    MikerRoo Guest

  4. #3

    Default Re: Temporary message to user waiting the result of thequery

    In my page I do a <cfinclude template="fileName.cfm">

    Then I include the following code into that included template:

    <cfoutput>
    <table id="progressbar" >
    <tr>
    <th><font size="2px"><strong />Processing, please be patient...</font></th>
    </tr>
    <tr id="i1">
    <td><img src="#Request.WebSvrHttpAddr#Images/Processing/progress_a.gif"
    id="divProcessingWindowImage" border="0"></td>
    </tr>
    </table>
    <script>
    function hideProgressBar(){
    document.getElementById('progressbar').style.displ ay = "none";
    }
    AE_AttachEvent("onload", "hideProgressBar");
    </script>
    </cfoutput>
    <cfflush>

    Basically it is an animated gif and asking the user to wait. It gives the
    user a feeling that the page is doing something.

    The main thing that happens is a table being shown before everything else by
    using <cfflush> then when the page loads, the table is hidden.

    Chikowski Guest

  5. #4

    Default Re: Temporary message to user waiting the result of thequery

    Does your "animated gif" appear immediately when the form/query is submitted? Or does it just flash right before the results are displayed? Thanks.

    Chris
    cgsj_usa@yahoo.com Guest

  6. #5

    Default Re: Temporary message to user waiting the result of thequery

    It appears as fast as the client's web browser can display it, then it gets hidden as soon as the data from the query is ready to be displayed.
    Chikowski Guest

  7. #6

    Default Re: Temporary message to user waiting the result of thequery

    As far as I know, there is no way to show something like a progressbar or an
    animated gif and have it stay on the page so the viewer can see it until the
    query'ed data is shown. I have noticed that with hugh sets of data to be
    displayed to the user, there are a few seconds where the page is blank and the
    browser is organizing the data to output. Once the bowser is done organizing
    the data, it shows all the data.

    Chikowski Guest

  8. #7

    Default Re: Temporary message to user waiting the result of thequery

    Originally posted by: MikerRoo
    One way to do it is attached.


    Hello,

    I have tried with a smaller query and it works well; I will do the test with the "big" one tonight.
    maquejp 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