There is no Postdata method -- I simply made a mistake in the code snippet. You can retrieve the post data by simply calling Request.Form() with no parameters.
Sent by Ramon on 07/26/2004 01:11:39 PM:
thank you very much for your help and it works fine. i just wonder before about "postdata" function (i thought it's new from foxweb). thanks again for the help!
Sent by FoxWeb Support on 07/23/2004 08:27:41 PM:
First of all, I just realized that I made a mistake in the code I provided in my previous answer (I have already corrected it): All output that has still not been sent to the browser sits in Response.OutputBuffer -- not Request.PostData. Also, a better way to empty the output buffer is to use Response.Clear (also incorporated in my corrected code). Sorry if this caused you any trouble.
It really makes no difference whether the page is called via Response.Redirect, or via a regular link. The Response.Redirect method sends a response to the browser asking it to request the page in question, so to FoxWeb the result is identical.
The Response.Buffer property is equivalent to the Buffer Output configuration setting, but only affects the current request. The Response.OutputBuffer contains any data that is waiting to be sent to the browser. It gets sent by one of the following triggers:
What this means is that you can turn buffering on, call an FWX file and retrieve its output from Response.OutputBuffer, so that you can send it by email. If you don't want to the user to also receive the content in her browser, you can call Response.Clear and then send an alternate response.
Sent by Ramon on 07/23/2004 01:38:31 PM:
first, i'm using response.redirect to call somefile.fwx. 2nd, when buffer = .f., does it create output file like somefile.html? and where can i access it? is it sitting on request.postdata?
Sent by FoxWeb Support on 07/23/2004 12:55:48 PM:
The property Response.OutputBuffer contains the information that would be sent to the browser. Of course you can't access this information from within the same FWX file, but you can have a wrapper FWX file as follows:
Sent by Ramon on 07/23/2004 11:10:44 AM:
can anyone help me how to save the processed .fwx to html file?
the idea is, i want to email that output .html to someone.