Radalerts with different icons on same page

3 posts, 0 answers
  1. Manuel Ortiz
    Manuel Ortiz avatar
    68 posts
    Member since:
    Aug 2009

    Posted 17 May 2010 Link to this post


    I want to popup two different radalerts on my page depending on specific server side events.  However, I want a different image (by image I am referring to the yellow exclamation mark that the default radalert shows at the left of the text) to appear in each one of them.  For example, I want a checkmark on one and an exclamation mark on the other.

    How can I accomplish this?? I have already made the radalert popup to work successfully, I only need to do the image thing.

    Thank you in advance,
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 May 2010 Link to this post

    Hi Manuel,

    Have a look at the following approach in order to show different icons for radalert on same page.

        <style type="text/css">  
            .icon1 div.rwDialogPopup  
                background-imageurl(../Images/image1.gif) !important;  
            .icon2 div.rwDialogPopup  
                background-imageurl(../Images/image2.gif) !important;  

    client code for showing alert:
        <script type="text/javascript">  
            function callAlert1() {  
                var oWnd = radalert('main text to display', 340, 110, 'new title');  
                var popupElement = oWnd.get_popupElement();  
                popupElement.className = popupElement.className + " icon2";  
            function callAlert2() {  
                var oWnd = radalert('main text to display', 340, 110, 'new title');  
                var popupElement = oWnd.get_popupElement();  
                popupElement.className = popupElement.className + " icon1";  
    I hope this couls help you. :)

  3. sravanthi
    sravanthi avatar
    23 posts
    Member since:
    Aug 2010

    Posted 02 Sep 2010 Link to this post

    Hai Princy,

    The solution works only on client side.do u have any solution to change the image of the rad alert on server side.
    It would be very helpful if any one could help me.

Back to Top