Subeesh, Following is logic from a DataGrid click handler. The logic: a) opens a new browser window (_blank), and b) passes "the necessary data" to it via a URL query string (?id=). Note the following is an abridged version of the actual code. In the full code I include try/catch on the navigateToURL():
var url:String = "/newWindow.cfm?id="+event.currentTarget.selectedItem.myID; var request:URLRequest = new URLRequest(url); navigateToURL(request,"_blank") Do you have an application server on the backend? If so, your app can take values passed via the URL query string above, and construct for the "new browser window" whatever your requirement calls for. Just curious, you write "i want its details to be displayed in a new browser window". What are you using for displaying the details in the new browser window? HTML? SWF? If you will have a second SWF in the "new browser window", your app server can construct FlashVars in the object/embed tags to pass "the necessary data" into SWF2. If you will have a second SWF in the "new browser window" and would like to use FlashVars the following post I made here on FlexCoders in January provides links into the Flex 2 docs. That earlier post can be found here: http://tech.groups.yahoo.com/group/flexcoders/message/63142 Please post back and let me know if this helps. If not, please provide more details on your requrement. hth, g On 3/5/07, subeesh a <[EMAIL PROTECTED]> wrote:
Hi Uday, Thanks for that. Right now i am using a titlewindow popup inside the flex app for the purpose.Can u help me to create the popup outside the flex app with al, the necessary data.Or i will go for the FABridge. Thanks Subeesh ----- Original Message ---- From: Uday M. Shankar <[EMAIL PROTECTED]> To: "[email protected]" <[email protected]> Sent: Monday, 5 March, 2007 9:20:10 PM Subject: FW: [flexcomponents] Open new browser window from flex app One way to do that would be to use the Flex-Ajax bridge (FABridge).. . which allows flex to access stuff from JavaScript and vice-versa. From a user-experience point of view, I would advice you to keep popups out of the application if you can manage it. TitleWindow would be a better choice. If there's no other way and you have to have it in a popup, then FABridge would be one option. J Cheers, udayms ------------------------------ *From:* flexcomponents@ yahoogroups. com [mailto: flexcomponents@ yahoogroups. 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
