Hey this is great - I'll try it when I get home.
 
I looked into using navigateToURL but stopepd when I saw "URLVariables" - since I needed to POST not GET.  What I was missing was the request.method = "POST"; line.
 
Musak, thanks for taking the time to answer my plea.
 
-Pat
 
 
On 10/5/06, Muzak <[EMAIL PROTECTED]> wrote:


import flash.net.navigateToURL;
import flash.net.URLRequest;
import flash.net.URLVariables;
// button click event handler
private function submitClickHandler(evt:MouseEvent):void {
var url:String = " http://domain/your_report.cfr";
// or var url:String = http://domain/your_cfm_that_generates_cfr.cfm
var request:URLRequest = new URLRequest(url);
request.method = "POST";
// post vars
var variables:URLVariables = new URLVariables();
variables.var1 = val1;
variables.var2 = val2;
//
request.data = "">// open cfr in new window
navigateToURL(request, "_blank");
}

regards,
Muzak



----- Original Message -----
From: "Pat Buchanan" < [EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, October 05, 2006 6:47 AM
Subject: [flexcoders] Open CF generated PDF report in new window from Flex?

> I'm converting an old CF app over to Flex. I have dozens of .CFR reports I
> want to call - they generate PDF not FlashPaper.
>
> I'm sure this is easy, and I'm over thinking it, but how do I post some data
> to new window that calls a CFR or other existing web page?
>
> What are the different ways people are doing this? I need to POST not GET
> the data to the pages.
>
> My first thought was to use an ExternalInterface call, but I've read that
> FireFox does not work with this method too well and I'm not sure how to POST
> with it to a new window.
>
> My next thought was to call back to _javascript_ in the parent window and have
> it post for me. However, I'm not quite sure how and if this is a hack.
>
> Am I over-thinking this? Is there a simpler way? I've searched for hours.
>
> Thanks for your help
>


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to