in addition to that, you can attach data to the 
urlrequest and use POST method like so:

var myvars:URLVariables=new URLVariables(postVars);
var urlToNav:URLRequest = new URLRequest(myUrl);
urlToNav.data=myvars;

Where postvars are url-encoded variable-value pairs..
or you can just directly assign a data oject to the
urlNav.data.
 then call navigatetourl:
navigateToURL(urlToNav,"_blank"); if you want to
target iframes instead, you can replace "_blank" with
the name of the iframe :)

--- Mauricio Zuniga <[EMAIL PROTECTED]>
wrote:

> does this help?
> 
>  private function nav(myUrl:String):void
>    {
>     var urlToNav:URLRequest = new URLRequest(myUrl);
>     navigateToURL(urlToNav,"_blank");
> 
> //  use this to go to navigate, but keep it in the
> same window
> //  navigateToURL(urlToNav,"_self");
> 
>   }
> 
> this code pops up a new window
> you could construct and pass in a url such as
> detail.php?detailid=1234 through actionscript...
> 
> you can call an actionscript upon doubleclick that
> calls a url such
> as
> url = 'detail.php?detailid=' .
> datagrid.selectedItem.detailid  .
> '&height=40&width=80&somethingelse='.somethingelse;
> nav(url);
> 
> hope this helps,
> 
> mauricio zuniga
> [EMAIL PROTECTED]
> 
> 
> 
> 
> From: flexcomponents@ yahoogroups. com
> [mailto:flexcompone [EMAIL PROTECTED]
> com] On Behalf Of subeesh a
> Sent: Monday, March 05, 2007 2:37 PM
> To: flexcomponents@ yahoogroups. com
> Subject: [flexcomponents] Open new browser window
> from flex app
> 
> Hi all,
> 
> I am building a flex app in which when i click on an
> item in datagrid, i
> want its details to be displayed in a new browser
> window.Can anyone help me
> regarding this. I want to know how to pass data to
> the new browser window
> from the flex app.
> 
> Thanks
> 
> Subeesh
> 
> 



 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

Reply via email to