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 = variables;
    // 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to