I ran into this some time ago.  The way I solved it was to create a page
(StatusMessage.cfm) that accepts 2 URL parameters.  This page has now become
a standard part of every site I build.  The first parameter is the page to
redirect to and the 2nd parameter is the message to display.  

Then on the page that accepts the report parameters I do my form
action="StatusMessage.cfm?ToPage=SomePage.cfm&Message=#URLEncodedFormat("The
message I want to display")#

The StatusMessage page is as follows.  The style class is pulled from a
standard style sheet.  This code is known to work in IE but has not been
tested under Netscape (our standard browser is IE).

Hope this helps!

Bill Grover
Supervisor, IS
EU Services, Inc.
649 N Horners Ln
Rockville MD 20850

Phone: 301-424-3300 x396
FAX:    301-424-3300 x1396#
E-Mail: [EMAIL PROTECTED]

<!---
 Page: StatusMessage.cfm
 Function: Display's a message before continuing to the next page.
 Created by: Bill Grover
 --->
<STYLE TYPE="text/css">  
  <!--
  .MsgDiv  {
        TEXT-ALIGN : center;
        font-family : Arial Black;
        font-weight : bold;
        font-style : italic;
        font-size : large;
        border-top-width : thin;
        border-bottom-width : thin;
        border-right-width : thin;
        border-left-width : thin;
        border-color : Blue;
        border-style : ridge;
  }
  -->
</STYLE>
<CFOUTPUT>

<CFPARAM NAME="URL.ToPage" DEFAULT="">
<CFPARAM NAME="URL.Message" DEFAULT="">

<HTML>
        <HEAD>
                <title>#APPLICATION.Title#</title>
        </head>

        <BODY>
                <DIV ID="MsgStart" CLASS="MsgDiv">
                        #URL.Message#
                </DIV>

                <FORM ACTION="#URL.ToPage#" METHOD="POST">
                        <CFLOOP INDEX="lcFieldName"
LIST="#FORM.FieldNames#">
                                <cfset lcFieldValue =
EVALUATE("FORM.#lcFieldName#")>
                                <INPUT  TYPE="hidden"
                                                NAME="#lcFieldName#"
                                                VALUE="#lcFieldValue#">
                        </CFLOOP>
                </FORM>

                <SCRIPT LANGUAGE="JavaScript">
                        document.forms[0].submit()
                </SCRIPT>
        </BODY>
</HTML>
</CFOUTPUT>

> -----Original Message-----
> From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 26, 2001 6:12 AM
> To: CF-Talk
> Subject: Generating reports in the background
> 
> 
> I want a user to be able to specify the criteria for a 
> report, dump the
> criteria into a database, trigger a page that generates the 
> report in the
> background by specifying the ReportID value, then redirects 
> the user to a
> page saying "Your report is being created".
> 
> At the moment, I'm using CFHTTP to call the template that creates the
> report. However, the CFLOCATION then doesn't redirect the 
> browser until the
> report has been generated - I want the CFLOCATION to happen 
> straight away.
> 
> I don't want to use Scheduled Events as some reports will 
> only take a few
> seconds to run and the user won't like to have to wait 
> another (say) 15
> minutes before all the outstanding reports are triggered for 
> a small report.
> 
> Any ideas on a good way of doing this? I'm sure the answer is 
> simple but the
> grey stuff is really struggling today...
> 
> 
> Thanks in advance
> 
> -- 
> Aidan Whitehall <[EMAIL PROTECTED]>
> Macromedia ColdFusion Developer
> Fairbanks Environmental +44 (0)1695 51775
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to