PopUp Manager and Flex Forum PopUps

I wanted make sure I understood what someone on the Forum told me about the PopUpManager and TitleWindow.
My question was:  "How are the PopUps that appear when you hover over a person's image/profile on the left side of this Adobe Forum's page done?  Did you use Flex for this, or are they some type of Ajax thing?  If Flex was used was it done with the PopUp Manager based on the TitleWindow.  This is exactly the kind of PopUp I need, especially because it has a larger hit area than most PopUps which dissapear when the mouse exits the button or textarea acting as a button.
Thanks and Sorry for the long version.
Doug

Hi,
Same  thing is simple to acheive in flex.You can try the code below.Let me know if you have any issue with this.
MainApplication.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
     verticalAlign="middle">
    <mx:Script>
        <![CDATA[
            import mx.managers.PopUpManager;
            private var bool : Boolean;
            private var myPopUp:MyPopup;
            private function onMouseOver():void
                if(bool == false)
                    if(myPopUp != null)
                        PopUpManager.removePopUp(myPopUp);
                        myPopUp = null;
                    myPopUp = MyPopup(PopUpManager.createPopUp(this, MyPopup, false));
                    myPopUp.move(700,400);
                    var infoObject : Object = new Object();
                    infoObject.imagePath = 'assets/img1.png';
                    infoObject.name = "David";
                    infoObject.country = "United Kingdom";
                    infoObject.profession = "Software Developer"
                    infoObject.domain = "Banking";
                    myPopUp.info = infoObject;
                    bool = true;   
            private function onMouseOut():void
                bool = false;
                if(myPopUp != null)
                    PopUpManager.removePopUp(myPopUp);
        ]]>
    </mx:Script>
    <mx:Image source="assets/img1.png" mouseOver="onMouseOver()" mouseOut="onMouseOut()"/>
</mx:Application>
MyPopup.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" width="250" height="300"
    title="Author Information">
<mx:Script>
    <![CDATA[
        private var _info:Object;
        public function get info():Object
            return _info;
        public function set info(value:Object):void
            _info = value;
            if(value != null)
                imgImage.source = info.imagePath;
                nameLbl.text = info.name;
                countryLbl.text = info.country;
                professionLbl.text = info.profession;
                domainLbl.text = info.domain;
    ]]>
</mx:Script>
    <mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">
        <mx:Image id="imgImage" buttonMode="true" useHandCursor="true"/>
        <mx:Label id="nameLbl"/>
        <mx:Label id="countryLbl"/>
        <mx:Label id="professionLbl"/>
        <mx:Label id="domainLbl"/>
    </mx:VBox>
</mx:TitleWindow>
with Regards,
Shardul Singh Bartwal

Similar Messages

  • How to improve af:popup performance and decrease the popup opening time?

    Hi All,
    I am trying to open a popup on mouse over of af:commandImageLink. Popup is opening properly but its taking quite some time for loading and opening. As I am opening af:menu component which is enclosed in af:popup on mouse over of af:commandLink I need memu to be opened immediately as soon as user places mouse over commandImageLink component.
    Is there any way we can decrease the popup opening time?
    Below is code snippet using for command Link and popup:
    Step1:
    <af:commandImageLink text="#{aaa.Data}" binding="#{navigationUtilBean.DataMenu}" icon="/images/MenuArrow_final.png"
    iconPosition="trailing">
    <af:showPopupBehavior popupId="::DataPopup"
    triggerType="mouseOver"
    align="afterStart"/>
    <af:clientListener method="onMouseOver" type="mouseOver" />
    </af:commandImageLink>
    Step2:
    <af:popup id="DataPopup" contentDelivery="immediate" animate="false" clientComponent="true"
    launcherVar="source" eventContext="launcher">
    <af:menu>
    <af:group>
    <af:commandMenuItem icon="/images/DropDownMenuArrow.png" text="#{aaa.Data}" inlineStyle="width:100px;"
    action="#{navigationUtilBean.conTimeIntervalAction}"
    actionListener="#{halfHSubDataSelectionBC.fetcAAHData2Accounts}"
    />
    </af:group>
    <af:group>
    <af:commandMenuItem text="#{aaa.NON_Data}" icon="/images/DropDownMenuArrow.png"
    action="#{navigationUtilBean.nonTimeIntervalAction}"
    actionListener="#{nonAASubDataSelectionBC.fetchNonAADataAccounts}" />
    </af:group>
    </af:menu>
    <af:clientListener method="popupClosedListener" type="popupClosed" />
    <af:serverListener type="serverPopupClosed" method="#{navigationUtilBean.serverPopupClosedListener}" />
    </af:popup>
    Edited by: 940044 on Jun 12, 2012 3:04 AM

    Hi,
    Welcome to OTN.
    As per the tag doc,
    The "mouseOver" or "mouseHover" event types have a built in 500-millisecond launch delay that is implicitly canceled if a "mouseOut" event is triggered for the same component within the delay period.http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_showPopupBehavior.html
    I don't think you can change that 500 millisecond delay.
    -Arun

  • Datepicker PopUp opens in the calling PopUp window

    Hey Guys, I need some help on this...
    I have a button that opens a PopUp window, and in this PopUp I have a "Date Picker" item,
    And when I want to select a date, the calendar shows up in the same PopUp window, and I m loosing the calling PopUp(the first one).
    How can I do so, that to have my PopUp window, and the calendart to show up in another PopUp?
    Thanks in Advance

    Hi,
    that's because of the Window Name you specified. Specify another one or use the popUp2 method which will create a unique name.
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • Help with Flex based popup windows and data population.

    Hello, I need a bit of help with Flex popups. I have a flex
    application that uses a popup window when you click on a button and
    displays information about the image above the button the user
    clicked. I have about 4 images and I need to be able to display
    information about each of them through the popup window when users
    click on the buttons below the image.
    At this time, I am trying to do this from somewhat of a
    "static" point of view because I do not believe my hosting company
    supports Flex Data services. You will find my code below.
    First File.
    <?xml version="1.0" encoding="utf-8"?>
    <!--Application Initialization -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="850" height="750"
    cornerRadius="10" borderColor="#000000"
    backgroundGradientColors="[#1b3434, #000000]">
    <!-- Popup-->
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    [Bindable]
    private var win:IMSAI;
    private function init():void{}
    private function createPopup():void{
    win=IMSAI(PopUpManager.createPopUp(this,IMSAI,true));
    win.title = 'IMSAI.Net';
    win.x = -500;
    win.y = 0;
    customMove.end();
    customMove.play();
    ]]>
    </mx:Script>
    <mx:Style>
    TitleWindow {
    borderStyle:solid;
    borderThickness:2;
    </mx:Style>
    <mx:Parallel id="customMove" target="{win}">
    <mx:Move duration="2000" xTo="{(stage.width - win.width)
    / 2}" yTo="{(stage.height - win.height) / 2}" />
    <mx:WipeDown duration="2000" />
    </mx:Parallel>
    This is the code to trigger the popup when a user clicks on
    the button. The code below is the code for the popup.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="init()"
    close="PopUpManager.removePopUp(this)"
    showCloseButton="true" alpha=".8"
    headerColors="[#000000,#1F3F62]" color="#FFFFFF"
    minHeight="200" minWidth="300"
    backgroundColor="#000000" title="IMSAI.net" width="520"
    height="394" verticalAlign="middle" horizontalAlign="center">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    private function init():void{}
    ]]>
    </mx:Script>
    <mx:Canvas width="470" height="338">
    <mx:Image x="10" y="10" width="140" height="103">
    <mx:source>file:///C|/ColdFusion8/wwwroot/IMSAI/Web-App/Site_Images/IMSAI
    Final Movie.swf</mx:source>
    </mx:Image>
    <mx:Text x="10" y="121" text="Description:" width="75"
    height="25" fontWeight="bold" color="#ff0000"/>
    <mx:Text x="158" y="10" text="Client:" width="52"
    height="28" fontWeight="bold" color="#ff0000"/>
    <mx:Text x="196" y="10" text="IMSAI Microcomputers
    &amp; Fischer-Freitas Company" width="252" height="39"/>
    <mx:Text x="159" y="46" text="Industry:"
    fontWeight="bold" color="#ff0000"/>
    <mx:Text x="216" y="46" text="Computer &amp;
    Microcontroller Manufacturing." width="232" height="35"/>
    <mx:Text x="83" y="121" text="IMSAI.net is the front-end
    web application for IMSAI Computer " width="355"/>
    <mx:Text x="10" y="136" text="manufacturing, customer
    support, and order processing. Driven by a Microsoft database
    back-end, this application includes rich flash forms, site search
    capabilities, and flash content. Currently under phase II of a
    three phase development plan, the e-commerce logic and processing
    capabilities are under development. Once finished, this application
    will be able to process orders provide customers with instant order
    confirmation numbers, shipment dates, and payment processing."
    width="428"/>
    <mx:Text x="10" y="244" text="Technologies:"
    fontWeight="bold" color="#ff0000"/>
    <mx:Image x="100" y="244" width="50" height="50">
    <mx:source>file:///C|/ColdFusion8/wwwroot/Sapphire
    Development/content/cf8icon.jpg</mx:source>
    </mx:Image>
    <mx:Image x="244" y="244" width="50" height="50">
    <mx:source>file:///C|/ColdFusion8/wwwroot/Sapphire
    Development/content/flashlogo.jpg</mx:source>
    </mx:Image>
    <mx:Text x="53" y="290" text="Coldfusion 8 Enterprise"
    height="30"/>
    <mx:Text x="230" y="290" text="Adobe Flash 8"/>
    </mx:Canvas>
    What I want to do is either be able to create a popup file
    for each button and photo, or find a way to pass a name like a
    button ID that corresponds to a XML data structure and then
    provides the appropriate data for the photo. I have tried altering
    the first page of code with the "public" declaration to allow for a
    second popup file for each button and image, but the IDE won't
    allow me to do such because it creates errors stating I can only
    have one public declaration of the kind and function above per
    application. Help resolving this would be greatly appreciated.
    Thank you.

    I have an idea of what I want to do. I am just having
    difficulty articulating how to go about such. I know I want to find
    a way so that if a user clicks on button 1, button 1 will send some
    kind of variable. For example, a user clicks Btn1 under a picture.
    Btn1 sends some kind of variable or binding to a data structure
    which returns the picture's description, price, etc. and calls the
    popup to display that data in a form like manner. Then the user
    click Btn2 which does the same thing. The only purpose of the popup
    is to display the data.
    Do I create a data structure with a related name to say a
    button name so when the btn is clicked, the a variable title btn1
    will prepend itself to the data structure like
    {btn1.imagename}
    {btn1.price}
    {btn1.description}.
    I want each btn to call a different set of data about each
    picture because right now, the code I have is allowing me multiple
    buttons, but is just displays the popup. Is there a way to create a
    separate popup window for each button? Thats seems as though it
    would be easier. Thank you for your help.

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • I am a web designer and I updated to firefox 19 and now my popups on my site does not work only in firefox 19. what has changed in firefox browser?

    I have a popup banner and also popup links that I have for sign-in or request info on my site using JavaScript, It always worked fine until I updated to Firefox 19. On other browsers there are no issues.

    If you use specific JavaScript libraries then make sure to use the latest versions.
    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Popup window and navigate to home page visual web part SP 2013

    I've a visual webpart where i am inserting items in the list in the button click event as below
    protected void btnSubmit_Click(object sender, EventArgs e)
    SPSite site = new SPSite(SPContext.Current.Site.OpenWeb().Url);
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["Request"];
    SPListItem item = list.Items.Add();
    item["Title"] = txtBoxTitle.Text;
    item.Update();
    Now after items is being added in the list i want to show popup window with message showing that
    "item has been inserted and click here to go to home page of the site"
    how do i achieve this can anyone help in this
    Note:there is a restriction in our requirement so only sandboxed solution can be used so i want resolution for sandboxed solution 

    You can' t use criptManager.RegisterStartupScript for redirection in sandbox solution.
    Please find the below reference
    http://social.msdn.microsoft.com/Forums/office/en-US/bd37b640-e225-41c0-8344-9f3b52fe0434/open-popup-window-and-redirect-user-to-home-page-in-sandboxed-solution?forum=sharepointdevelopment
    You have one more option to open a popup SP.UI.ModalDialog
    Please find the below reference
    http://msdn.microsoft.com/en-us/library/ff798375.aspx
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx

  • Managed system asking logon popup while clicking change & Workload  E2E

    Hi ,
    Managed system asking logon popup while clicking change & Workload  E2E in solman_workcenter ->RCA>E2E
    it asking logon pop-up if i click change analysis & workload analysis for all managed system.
    My Bi client for solman system is 400.but they asking my BI production system logon credential.
    I check in Solman_setup , i gave my bi client only and also i re-run my solman_setup basic configuration wizard.
    But still i am getting the pop-up.
    How to change this setting .Any help?
    Regards,
    Karthik

    Hi ,
    I found In Solman_workcenter-> RCA -> diagnosticsetup -> Diagnostic system -> Advanced setup ->last setup result showing
    "Successfully stored property setup/SMD_URL=http://<solman hostname >:50100/ into SMD repository
    Successfully stored property setup/BI_URL=http://<Bi hostname >:8080/ into SMD repository
    Stored BI URL in BI configuration : http://<BI hostname>:8080/
    Stored Diagnostics URL in BI configuration : http://<:soman hostname>50100/"
    Here BI URL is map to my BI production system. How to change solman 400
    in this place.
    how to change this setting?
    Plz give path to find SMD repository.
    Regards,
    Karthik
    Edited by: HemaKarthik on Aug 30, 2010 7:50 PM

  • [Integration] Web Dynpro ABAP calling Flex in Popup (without Flash Islands)

    Hi,
    We do not intend to install Enhancement Package 1 in a near future.
    Nevertheless, we do have requirements where Flex should be integrated with Web Dynpro ABAP (Flex components embedded or 'attached' to Web Dynpro ABAP applications).
    I would like to open a popup showing a Flex component. Then, the user validates and the Web DYnpro ABAP application is resumed. All this integrated within EP 7.0.
    What, according to you, would be the most effective combination : 
    - Suspend / Resume plug
    - Server-side cookies
    - iFrame (although it is deprecated)
    Given what I have read so far, it seems encapsulating the .swf within a BSP application would be the best shot. Could it be possible to get rid of this 'additional layer' ?
    Thanks in advance.
    Best regards,
    Guillaume

    Web Dynpro ABAP
    Define a suspend and a resume plug.
    BSP
    Retrieve the parameters sent by WDA either by AUTO attributes or the following code
    CONSTANTS: c_resume_name          TYPE string  VALUE `sap-wd-resumeurl`.
    DATA: lt_tihttpnvp                TYPE tihttpnvp.
    FIELD-SYMBOLS: <fs_httpnvp>       LIKE LINE OF lt_tihttpnvp,
                   <fs_dept_magasin>  LIKE LINE OF t_dept_magasins.
    ** Lecture des paramètres envoyés (par le WD ABAP)
    CALL METHOD request->get_form_fields
      CHANGING
        fields = lt_tihttpnvp.
    READ TABLE lt_tihttpnvp ASSIGNING <fs_httpnvp> WITH KEY name = c_resume_name.
    IF sy-subrc = 0.
      e_url = <fs_httpnvp>-value.
    ENDIF.
    Flex
    To return to the Web DYnpro ABAP, call a Javascript function within the BSP using this kind of code :
    jsReturn = ExternalInterface.call("sendBackToSAP", selectedDepartmentsParam, orderParam);
    BSP
    First, to react to the user action in the Flex component, define a Javascript function in the
          function sendBackToSAP(departements, ordre) {
             fireServerEvent(departements, ordre);
             return("Done");
    To fire a server-event (in order for BSP to call the WDA resume plug), I use this declaration :
    <!--  Event used by the Javascript to trigger OnInputProcessing so as to create
                  the server-side cookie -->
           <bsp:htmlbEvent name= "fireServerEvent"
                           id  = "flexAction"
                           p1  = "departements"
                           p2  = "ordre"></bsp:htmlbEvent>
    Last, I simply call the URL that the WDA gives me first :
    navigation->goto_page( e_url ).
    If people are interested in a more detailed presentation, feel free to reply to this post, and I will write a blog about this. Nevertheless, it should become pretty obsolete with the Flash Islands release... 
    Edited by: Guillaume Garcia on Oct 11, 2008 11:13 AM

  • Popup Manager In AS3

    What's the code for creating a Popup Manager in AS3?

    Hi --
    I believe that this has been removed from AS 3, at least for
    the moment. I
    myself was looking for a way to create a simple pop up box
    and had to write
    one myself.
    Rich
    "bdq1772" <[email protected]> wrote in
    message
    news:fjbsvh$idi$[email protected]..
    > What's the code for creating a Popup Manager in AS3?

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • How do I set a default to never allow access to my contacts and stop the popup requests on every website?

    Since last few Nightly updates, I am getting one or more (one site had 5 domains) popup requests similar to "Allow ad.doubleclick.net to access your contacts? [] Don't ask for this site again. Allow access Don't allow access .... This is getting really annoying. If you are going to add this capability to Firefox, please add a default config setting to always deny access and stop the popups.

    It is in the process of being disabled. It will likely be some time next week before the code will be reverted.

  • I installed Lion 10.7.4.  Went to use Photoshop Cs and got a popup window.  You can't open the application Adobe Photoshop CS because PowerPC applications are no longer supported.    Is there a way of getting this to work or do I have to get the all new!

    I installed Lion 10.7.4.     Went to use Photoshop Cs and got a popup window.  You can't open the application Adobe Photoshop CS because PowerPC applications are no longer supported.    Is there a way of getting this to work or do I have to get newest version of all of my Power PC apps?

    Welcome to Apple Communities
    PowerPC applications are unsupported in newer versions. You can upgrade Photoshop or you can install Snow Leopard in a partition.
    1. Open Disk Utility (Applications > Utilities) and select your drive
    2. Go to Partitions tab, press + button, create a new partition and press Apply
    3. Insert the Snow Leopard install DVD and reboot pressing C key
    4. Install it in the new partition
    5. If you want to change boot, go to System Preferences > Startup Disk and select 10.7

  • To load a pdf file in popup window using flex

    Hi All,
    Can anyone send me the code for loading pdf file in a popup
    window using flex.
    Regards,
    Dharma

    try this action script
    var pdfUrl:URLRequest = new URLRequest("assets/file.pdf");
    navigateToURL(pdfUrl,"_blank");

  • I opened a website that said that all of my files had been encrypted. A popup appeared and asked if I wanted to leave the page, but when I tried to, it wouldn't let me.  How do I know if this is a real problem or not?

    I was researching information for a class and I clicked on a website that said that all of my files had been encrypted.  A popup appeared and asked if I wanted to leave the page but when I tried to, it would let me.  I had to force quit Safari in order to do so.  How do I know if this is a real problem or not? 

    It's a JavaScript scam that only affects your web browser, and only temporarily.
    1. Some of those scam pages can be dismissed very easily. Press command-W to close the tab or window. A huge box will pop up. Press the return key and both the box and the page will close. If that doesn't happen, continue.
    2. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and uncheck the box marked Enable JavaScript. Leave the preferences dialog open.
    Close the malicious window or tab.
    Re-enable JavaScript and close the preferences dialog.
    3. If the Preferences menu item is grayed out, quit Safari. Force quit if necessary. Relaunch it by holding down the shift key and clicking its icon in the Dock. From the menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    to get rid of any cookies or other data left by the server. Open your Downloads folder and delete anything you don't recognize.

Maybe you are looking for