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

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

  • 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

  • Customising validation alert window

    Hi,
    I wondered if someone could tell me if it's possible to customise the output of validation errors that appear in the alert popup if required fields are not completed?
    I assume that I'd have to edit the file at the following path:
    CatalystScripts/ValidationFunctions.js
    If yes, can anyone tell me where that file is located in the site structure.
    Thanks in advance.

    Thanks for the link,
    The problem is that it only lets you customise certain alert messages (related to an online store) whereas I need a way to customise specific messages related to my custom form. Do you know if there is another way to do this?

  • How to show javascript alert popup after commandLink action?

    Hi,
    I'm building an ADF-based .jspx page. I have a commandLink whose action calls a method in my page's backing bean. I want to show a javascript alert popup when the commandLink is clicked and after the backing bean method has been called. The text displayed in the alert popup is dependent on whether the processing in the method was successful or not.
    I couldn't figure out how this could be done though. It doesn't seem I can use the onClick attribute on the commandLink because that gets called before my backing bean method gets called. From my backing bean method, is there some way to launch a javascript alert popup and show certain text in it based on what happened in the method?
    Thanks for any ideas.

    Hello and thank you for your reply,
    I am trying to combine dwr and ADF.
    When I use the following code to grasp the input value from the user
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding expr = fc.getApplication().createValueBinding("#{bindings['LIMARXESPORTCODE_bindVariable2'].inputValue}");
    setLIMARXESPORTCODEbindVariable( expr.getValue(fc).toString() );
    in order to use it as a dynamic bind variable to the where clause of the following query:
    vo.setWhereClause("LIMARXESPORTCODE = :LIMARXESPORTCODE_bindVariable");
    vo.defineNamedWhereClauseParam("LIMARXESPORTCODE_bindVariable", null, null);
    vo.setNamedWhereClauseParam("LIMARXESPORTCODE_bindVariable", LIMARXESPORTCODEbindVariable );
    executeAndShowResults(vo);
    in the backing bean java code. All I get as an output from a javascript alert window is null.
    However, when the bean member variable LIMARXESPORTCODEbindVariable has a
    hard coded, static value i.e. LIMARXESPORTCODEbindVariable = 111; and the first code snippet is commented out, everything works just fine!
    Any hint is welcome,
    T I A.

  • How to increase the iCal Alert Popup BOX height?

    I would like to be able to increase iCal's Alert popup box to show more than two concurrent alert notifications at one time.  Ideally, this popup box would dynamically size itself to the number of active alert notifications up to the available screen space.  A second less elegant solution would be to enable the user to resize the iCal Alert popup box manually.  A third  even less elegant solution would be to statically redefine a new default height in terms of either active alert notifications or pixels.  Anything would be better than the limitations currently in place...
    Here is an example of three concurrent alerts.  In this case, the user must scroll down within the iCal Alert popup box to see Alert #3.

    Hi
    It's not at all possible.
    If you want to use a textbox with muliple line items... you need to use Text Edit control. If you want to use that click on the following link for clear information:
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/fe9f668af411d3805e00c04f99fbf0/frameset.htm
    Regards
    Surya.

  • [svn:fx-trunk] 9180: When another popup is going away as the alert is going up, the Alert can get validated inside of addPopUp and its centering logic never got the event it expected .

    Revision: 9180
    Author:   [email protected]
    Date:     2009-08-07 15:11:43 -0700 (Fri, 07 Aug 2009)
    Log Message:
    When another popup is going away as the alert is going up, the Alert can get validated inside of addPopUp and its centering logic never got the event it expected.
    add the event listener earlier so it is ready if we get validated inside addPopUp
    QE Notes: versioning/baselines/mp_alert_mask_compatible.png needs updating.  I think the current baseline is incorrect.
    Doc Notes: None
    Bugs: SDK-22819
    Reviewer: darrell
    tests: checkintests mustella/components/alert
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22819
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Alert.as

    Hi or2tx2002, 
    We're really sorry to learn of all the equipment issues you've experienced in the last year. In order to discuss your replacement options, I ask that you please PM me with your wireless number, a contact number and a good time to reach you. I will be happy to reach out to you and bring resolution to this matter. 
    Thank you and I look forward to hearing from you soon. Make it a great day! 

  • How to Use the alert in popup

    Hi all,
    I have created a popup with some fields. Doing mandatory fields validation in the button of popup. Popup is called from the button by using the show popup behavior.
    In the button action method, if the mandatory fields are missing am raising the alert by using the below code:
    FacesMessage msger = null;
    msger =
    new FacesMessage("Inside Validate");
    msger.setSeverity(FacesMessage.SEVERITY_ERROR);
    FacesContext.getCurrentInstance().addMessage(null, msger);
    It is showing the alert. But it closes the popup. My requirement is should not close the popup when the alert is showing.pls guide me in this.
    Regards
    C.Karukkuvel
    Edited by: C.Karukkuvel on Dec 27, 2010 3:57 AM

    Hi,
    For ur Case u need to open and close the popup programatically.....
    Open Popup : Open Popup Programmatically
    Close Popup : how to close a popup by backing bean?
    Remove the show poupbehaviour
    Define popup type as none and inside the buttonbar facet of the dialog have ok cancel buttons... In the buttons have the closing logic of the popup after ur validations gets passed
    Regards,
    Suganth.G

  • Edit the hyperlink in the alert email (Modify my alert settings, View Issue Tracking)

    is it possible to add the external hyperlink in these emails instead of the internal hyperlink? 
    in example when I get a list tracking email there are hyperlink that get sent out with these tags Modify my alert settings | View Issue Tracking | mobile view  that use the internal url //servername how can I change it to use the external
    address //internetname

    Hi Joe, check out the following links for solutions:
    http://sharepoint.stackexchange.com/questions/13216/how-to-create-custom-email-alert-template-in-sharepoint-2010
    https://social.technet.microsoft.com/forums/sharepoint/en-US/e5ebc5a7-8295-49e4-a817-c31066e1ac3d/customize-the-sharepoint-2010-email-alert
    http://www.alectang.com/blog/archive/2012/05/16/how-to-customise-sharepoint-alert-email-template.aspx
    cameron rautmann

  • 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"; )

  • Alert PopUp when form opened

    Hello,
    I imagine this is a pretty basic question, but in Livecycle, how do you make an alert popup box appear when a PDF form is opened?
    Thanks

    Hi,
    In the docReady event of the form you can write the script to show an alert. : app,alert("Welcome !!").
    Thanks,
    Bibhu.

  • Activities to show up on Messages/Alert Popup

    Hi all,
    We would like activities that we assign to other users to show up on their messages/alert popup.
    Is there a way to make this happen?
    Thanks,
    Jane

    Hi Jane,
    When setting up the activity, be sure to set a reminder. this will enable the alert to show on the alerts inbox.
    Also, make sure that the "display inbox when new message arrives" is activated for the user (system initialization -->general settings --> services tab) and set the "update messages" to an acceptable time.
    Hope this helps,
    Kiran

  • How to stop javascript alert popups from stealing tab focus?

    I have two gmail accounts, and usually a lot of tabs open. So sometimes I log into my other gmail account while a tab somewhere else still is logged in to my other. Sooner or later, the gmail with the old login session notices this, and makes a little alert() popup telling me I've been logged out, a couple minutes after I checked my emails on the other account.
    Now the problem is, that firefox because of this alert() popup instantly jumps to that tab, and I lose my place in my tab-jungle. This is very annoying. How do I prevent this inactive tab from stealing my focus/alert messages autofocusing tabs?

    Hello,
    Yes I know, but I don't want to do this. Is there any way to stop firefox from behaving this way?
    Thanks

  • Disable IE 10 & 11 Security Alert popup w/ Group Policy

    We get a Security Alert popup when accessing a https site
    "You are abut to view pages over a secure connection....."
    With previous version of IE, user can simply check box for "In the future, do not show this warning" and it will not pop up again, however, w/ the new IE 10 and IE 11, it keeps coming back.  What is the group policy rule to disable this pop
    up?
    Thanks in advance.
    Roget Luo

    Hi Roget,
    It seems that we can enable the following setting to block the warning message:
    Computer Configuration/User Configuration > Adminstrative Templates > Windows Components > Internet Explorer >Turn off the Security
    Settings Check feature
    Besides, apart from group policy, if we just want to individually block the message, the following article can be referred to for more information.
    Stop security warning in Internet Explorer
    https://innsida.ntnu.no/wiki/-/wiki/English/Stop+security+warning+in+Internet+Explorer
    Please Note:Since
    the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • How to disable Security Alert popup each time for trusted site in IE on Win XP

    A user is using slow computer running with Windows XP SP3 and Java 7 update 45 version.
    When user open this site www.rocars.gov.hk in Internet Explorer 8, it will wait around 2 minutes to disaply security alert popup windows.  Then user needs to click Y to continue. Actually this website is trusted. How can I disable the security alert popup each time?
    I ever asked the technical support from www.rocars.gov.hk and they replied this issue is related to Java. So I ask here.

    918ee531-e393-4945-a46c-cd83c779af9a wrote:
    A user is using slow computer running with Windows XP SP3 and Java 7 update 45 version.
    When user open this site www.rocars.gov.hk in Internet Explorer 8, it will wait around 2 minutes to disaply security alert popup windows.  Then user needs to click Y to continue. Actually this website is trusted. How can I disable the security alert popup each time?
    I ever asked the technical support from www.rocars.gov.hk and they replied this issue is related to Java. So I ask here.
    what does problem have to do with Oracle DB?

Maybe you are looking for