Professional Web Applications Themes

Temporary message to user waiting the result of thequery - Coldfusion - Advanced Techniques

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......

  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. #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 = doent.getElementById
    ? doent.getElementById ("FriendlyStatusMessage")
    : doent.all? doent.all["FriendlyStatusMessage"]
    : alert ('Your browser needs to be replaced with
    FireFox.')

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

    *** Finish page display here. ***

    MikerRoo Guest

  3. #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(){
    doent.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

  4. #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

  5. #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

  6. #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

  7. #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

Similar Threads

  1. Draft deleted but user still waiting for it.
    By TwisterMc in forum Macromedia Contribute Connection Administrtion
    Replies: 2
    Last Post: November 30th, 05:02 PM
  2. Get result from temporary Oracle Table
    By Franck in forum ASP.NET Web Services
    Replies: 0
    Last Post: April 28th, 07:48 AM
  3. Launch a system command without waiting for the result
    By Denis in forum PHP Development
    Replies: 1
    Last Post: December 26th, 03:30 PM
  4. HELP - User threads "Waiting on a buffer"
    By Greg Collett in forum Informix
    Replies: 2
    Last Post: October 30th, 12:14 PM
  5. Replies: 7
    Last Post: July 23rd, 10:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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