Styling the Alert popup window

In Flex 3, you could style the popup window produced by Alert.show with the Alert selector:
Alert
  background-color:aqua;
This appears not to work any more in Flex 4, even with the appropriate namespace prefix:
mx|Alert
    background-color:aqua;
I've confirmed that the selector is correct, because it can be used to modify the fonts within the Alert popup, but any colors, corner radius settings, etc. are ignored. I also tried switching to the Halo AeonGraphical theme with no success.
Are there any new tricks to know about in this area?
Thanks,
David

Hello,
Does this article help?
http://www.adobe.com/devnet/flex/articles/flex3and4_differences_02.html
This code seems to work:
<fx:Style>
    @namespace mx "library://ns.adobe.com/flex/halo";
    mx|Alert   
        contentBackgroundColor:aqua;
</fx:Style>
- Rob

Similar Messages

  • The navigateToURL influences the Alert PopUp behavior

    Hello all!
      Working on my project in Flex 4 Prem I've met the strange
    model of behavior when I call navigateToURL method after creating
    Alert popup window: being run the program does not wait user's mouse
    click on OK button on Alert popup. Instead it displays the popup for
    a sec and go to the next statement in source code: navigateToURL()
    function's call.
      If I comment this navigateToURL() call, the program's behave returns
    to normal as it is suppose to be: it waits until user clicks on the OK
    button on the Alert popup window. The simple model of the source code
    you can se below.
    Please, help me to understand what I've done wrong.
    Thanks a lot in advance!
    Andrey Suntsev
    The code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <s:layout>
           <s:BasicLayout/>
        </s:layout>
        <fx:Script>
            <![CDATA[
            import mx.controls.Alert;
            import mx.core.FlexGlobals;
            private function show_Messages(_event:MouseEvent):void
                Alert.show("Click OK");
                navigateToURL(new URLRequest(FlexGlobals.topLevelApplication.url), '_self');
            ]]>
        </fx:Script>
        <s:Button id="submitButton"
                  label="Show message"
                  click="show_Messages(event);" />
    </s:Application>

    @Uasav,
    Something like this should work:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.core.FlexGlobals;
                import mx.events.CloseEvent;
                protected function show_Messages(evt:MouseEvent):void  {
                    Alert.show("Click OK", "", Alert.OK|Alert.CANCEL, null, alert_closeHandler);
                protected function alert_closeHandler(evt:CloseEvent):void {
                    switch (evt.detail) {
                        case Alert.OK:
                            navigateToURL(new URLRequest(FlexGlobals.topLevelApplication.url), '_self');
                            break;
                        case Alert.CANCEL:
                            // ignore
                            break;
            ]]>
        </fx:Script>
        <s:Button id="submitButton"
                  label="Show message"
                  click="show_Messages(event);" />
    </s:Application>
    Peter

  • Dynamic message with Alert popup window?

    I'm using the simplest form of Alert popup window. Is there a way I can put a dynamic alert message in the window? For example,
    the Alert shows the "XYZ" at beginning, and then change to "ABC" by an event before the OK button is clicked.

    First you need to create a refernce to the Alert window.
    alert  = Alert.show("Hello");
    To change the text
    alert.mx_internal::alertForm.mx_internal::textField.text = "New Text";
    ( had to use mx_internals because the following code is not updating the text alert.text = "New text"; )

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • 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

  • What happened to the "Block Popup Windows" menu item in Safari 6?

    What happened to the "Block Popup Windows" menu item in Safari 6?  Seems to be gone.

    Shheesh!  Loki is saying that this was a very useful tool/option.  Is there any way to BRING IT BACK TO THE SAFARI MENU?  Not how to do it in Preferences.
    What I am saying is: What incompetent is responsible for this build of Safari?  There was no reason to take that out... plenty of room in the Safari menu.  But if you REALLY want to know why I'm ******, Older people can no longer go into "Appearances" and change the Fonts and Size without knowing how to use terminal or how to make .css files.  (which doesn't work well anyway)
    This build is infuriating.

  • I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    I have uninstalled Lightroom and need to re-install it on the same computer. I cannot find where to re-install it. The CC popup window says that it is installed and Up to date.

    CC desktop lists applications as "Up to Date" when not installed
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • Has Safari 5.1 broken the Block Popup Windows feature?

    I like most of the changes in Safari 5.1, but the Block Popup Windows feature doesn't seem to work any more. Is anyone else having this problem?

    Same problem on windows 7 64-bit i3-based machine.

  • Submitting values to the same popup window and closing the window after upd

    hi,
    i have a jsp page called index.jsp.
    in that jsp page i have an hyperlink..if i click on this it opens a popup window.in this popup window we have some values allowed to user to modify.after entering the values in popup window he clicks update then the values are updated and the window is closed and the index.jsp page is refreshed.
    how can do this.
    i want tried in this way but i failed..
    first time when i open the window i kept a flag as hidden field false..
    once the user clicks the update button after entering the value then i make the flag as true and submitt to the same page..now iam updating after immediate update i want to close the window..its not closing.
    if(!flag)
    display fields with update option
    }else
    rtreieve the values
    update in database.
    <script>
    window.opener.refresh;
    window.close();
    </script>
    }

    I had a similar problem. I resolved it by making use of IFrames.

  • Close the ADF popup window from deployed JSP in other server

    I am attempting to open jsp page which one is deployed on tomcat server in adf pop up window from cmd button event.and this first jsp will forward to second jsp and i should able to close from pop window from second jsp close button.
    This is what i did:
    1) created pop-up window and run the delployed jsp on pop up page
    2) i used window.close script in second jsp but not popup window is not get closed .
    help me to achieve this pblm ....

    i was trying to open &close other server's jsp from ADF pop-up window ... so base is internal window (pop-up) only ,
    and already i used onclick="window.close();" in command button...but its not closeing the adf pop-up window ... how that jsp cmd button onclick event take control of adf pop-up to close ?
    help me ???

  • Why doesn't the download popup window do what I tell it to?

    In most cases when I download files, I want the popup window to ask me how to handle them - and it does. However, I have a subscription to the NYTimes crossword puzzles. For this type of file only, when I click on a file I want to open it immediately.
    The popup window knows how to open these files: it says
    You have chosen to open ....
    What should Firefox do with this file?
    Open with _Across Lite_
    Save File
    Do this automatically for files like this from now on (This option is checked, but I get the popup window anyway. Does automatically mean something different for you than it does for me?)

    The server could be sending the ''Content-Disposition: attachment'' header. Install the InlineDisposition add-on and see if makes a difference.
    * https://addons.mozilla.org/firefox/addon/inlinedisposition/
    If that doesn't help, the server could be sending the ''Content-Type: application/octet-stream'' header.
    # What is the file extension for the crossword puzzles that you download?
    # Click the ≡ Menu Button and choose Developer, then Web Console (or press Ctrl+Shift+K).
    # Load the web page with the file download link.
    # Click the Clear button in the Web Console.
    # Click the download link.
    # In the Web Console, click the file request in question to examine it. In the little window that pops up, in the Response Headers section, what is the Content-Type header? It would be helpful if you'd [[How do I create a screenshot of my problem?|provide a screenshot]].

  • Uninstalling the 'block popup window' using ' safari'... preferences security did not help. Can somebody please help?

    Why turning off ' block popup window' does not work for me when i open the page?

    r! A popup blocker may be preventing the application from opening the page. If you have a popup blocker, try disabling it to open the win

  • Firefox is blocking popups that I want to see, even after I have unchecked the Block Popup Windows in Options.

    There are several sites that provide popups that I want to see. Firefox had not been blocking them previously. Then today it did. I went to Options and listed these sites as exceptions. It still blocked them. I went to options and unchecked Block Popup Windows. It still blocked them. I uninstalled Firefox and reinstalled a new copy. It still blocks them. What do I do now?
    BTW, this does not occur when I access the same sites with Internet Explorer.

    I have the same issue. I am using windows 7 ultimate and have it on a laptop which has no issues. It is only one pop up i want to come up and it blocks it. I am using zone alarm as well, and I turn it off and it makes no difference. IE works and I HATE Microsoft. I wish Mozilla would come up with a fix.

  • Customising the Alert popup

    Hi Flexers
    The following works in changing some of the properties of the
    Alert
    <mx:Style>
    Alert {
    backgroundColor: yellow;
    color: blue;
    cornerRadius: 10;
    headerHeight: 30;
    shadowDistance: 5;
    highlightAlphas: 0,0;
    headerColors: white, red;
    fontSize: 13;
    fontFamily: Georgia;
    </mx:Style>
    Please advise on the following:
    1) fontFamily: Comic Sans MS; didn't give me the font I
    expected. Does flex support this?
    2) the yellow background colour looks good but I couldn't get
    rid of the default greyish border. How can I turn the whole
    backgroud into the colour I want?
    3) Can I increase the margin between the button and the
    border? The default margin was too narrow.
    Looking forward to hear from you. I Fung

    Try this:
    Alert {
    backgroundColor: yellow;
    color: blue;
    cornerRadius: 10;
    headerHeight: 30;
    shadowDistance: 5;
    highlightAlphas: 0,0;
    headerColors: white, red;
    fontSize: 13;
    fontFamily: Georgia;
    message-style-name:"messageStyle";
    border-thickness:0;
    padding-bottom:10;
    .messageStyle {
    fontFamily:"Comic Sans MS";
    The message-style-name allows you to set text properties for
    the message of your Alert. You can set the fontFamily, fontSize,
    color etc.
    The border-thickness set to 0 will remove the default grey
    border. Or you can set the border-color, to change the color to
    something that matches your yellow background.
    The padding-bottom property will increase the margin between
    the Alert butons and the bottom of the container. Likewise,
    padding-top will increase the margin above the Alert text.
    I hope this helps.
    Vygo

  • Can I change the location of the Info popup window?

    Whenever I double click an event to edit or add information, it appears at the far upper left corner of my screen. I have to move my mouse that way to edit it; on a 27 inch screen that is very inconvenient. If I move the window and close it, the next one I open is back in the corner again. Is there a way to change the location where the info window pops up? I'd rather have it close to the appointment in my calendar!
    TIA

    Team Ben Hur
    SG will probably have more to say about his reply, but in the meanwhile you might want to check out Premiere Elements 11/Elements Organizer 11/File Menu/Catalog Manager... and the Custom Location option. I suspect that is what both of you have in mind?
    When Photoshop Elements 11 and Premiere Elements 11 are installed on the same computer, they share a common Elements Organizer (catalog) although they can be purchased as standalone products each with its own Elements Organizer (catalog).
    ATR

Maybe you are looking for