View Full Version : Flex PopUp in new browser tab/window
flexbond
February 11th, 2008, 06:01 AM
Hello Friends
I am working on a flex project. I have a user.mxml in my project. I want to open this mxml in a new browser window on clicking a button(Show Users). It means application would be continue in the current window and user.mxml will popup in new browser window
Any idea???
Thanks
jwopitz
February 11th, 2008, 11:15 AM
You would most likely have to have a separate application that displays the user.mxml that would exist in the new browser window.
I have to say I think that behavior is contrary to the nature of Flex. If you are expecting to use a popup with Flex content, it would be ideal to house that popup in the Flex app using something like TitleWindow and PopUpManager.
If your specs mandate that your have to have a separate browser window popup outside of the flex app, then I highly recommend using a either a smaller Flash app to display this, or consider using HTML to display the popup data. Otherwise you incur the heavy flex app file-size and load time for a separate Flex app just for your popup.
flexbond
February 18th, 2008, 01:04 AM
Thanks jwopitz
i have a complete application in flex... user xml is juat an examplae i have more than 50 other screens i need to open in another window. This is clients requirement.
I already using Popup manager...
can you tell me some way to do this
jwopitz
February 18th, 2008, 10:22 AM
Ok this is a suggestion for if you are needing to load flex-created content into separate browser popups. So since you client is making you do this the hard way here it goes:
I'd suggest making all of your flex popup content either A) extend the Module classes and then create a reusable module loader application, hoping that the user does not close this each time, thereby forgoing the initial load each time. Then via either using the local shared object or local connection, tell that popup loader app which Module to use. Or...
B) Create another monolithic app just for the popups and have all that content pre-compiled inside it, so each time you expect a browser popup, it loads this app and uses the right content.
But Flexbond, I would seriously go to the client and say this is ludicrous. Flex isn't made to do this and the user will incur heavy load times for simple popup content. Either they should consider a redesign of the popup content or consider a different presentation technology.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.