Skip to main content
Inspiring
January 17, 2011
Answered

Onloading of a CFM page, display a message

  • January 17, 2011
  • 1 reply
  • 1309 views

Hi all,

I have a cfm page which has a submit button, on clicking of that, it will open a new window, where a report will be generated in that.

The problem is the report generation(cfquery) taking long time to load;(nearly 4 minutes).. Initially with the help of CSS , in the new window, I had "Please be patient, while the report generation is in process".. this message comes before the 15 seconds (of the report generation).. So for the first 3 minutes, I m having a blank screen..

I want to have this message for the first 3 minutes also.

Your help needed..

Thanks in advance

    This topic has been closed for replies.
    Correct answer Owainnorth

    This sounds like a case for... CFFLUSH!

    As the A-Team weren't available due to a dispute with their union.

    CFFLUSH pushes the current page to the browser as far as it's rendered. There are a few exceptions where it won't work, but it'd be a fair place to start.

    1 reply

    Owainnorth
    OwainnorthCorrect answer
    Inspiring
    January 17, 2011

    This sounds like a case for... CFFLUSH!

    As the A-Team weren't available due to a dispute with their union.

    CFFLUSH pushes the current page to the browser as far as it's rendered. There are a few exceptions where it won't work, but it'd be a fair place to start.

    meensiAuthor
    Inspiring
    January 17, 2011

    Yes, I will check this one.. but this tag has got so much restriction..


    Owainnorth
    Inspiring
    January 17, 2011

    True, but it's the only way of sending data to a browser before the page has finished loading.

    Only other option might be to complete the task in a separate thread and ask the user to check back later rather than keeping them waiting.