RadAlert Chrome

5 posts, 0 answers
  1. dany7487
    dany7487 avatar
    88 posts
    Member since:
    Jan 2008

    Posted 16 May 2009 Link to this post

    Hi, Telerik.
    I´m using radalert control of radcontrol for asp.net ajax and it works fine in IE, but not in Chrome with the following issue:

    I have a template as a user control (ascx) for the radalert with:

    <img id='AlertIcon' align='absmiddle' style='vertical-align:middle;border:0' /> {1}

     

     

     

     

    Now I´m using this to get the image and then set the SRC attribute:

    var

     

    oWindow = radalert('message', 300, 100, 'title');

     

     

     

     

    var imgicono = oWindow.GetContentFrame().document.getElementById('AlertIcon');

     

     

    imgicono.src = "my picture";

     

     


    It works with IE, but this does not work with Chrome: 
    var imgicono = oWindow.GetContentFrame().document.getElementById('AlertIcon');

    Can you help me?
    thanks a lot,
    Daniel.

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 May 2009 Link to this post

    Hello dany7487,

    Could you please open a support ticket and send me the full alerttemplate that you are using?

    Thank you in advance for your cooperation.

    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. dany7487
    dany7487 avatar
    88 posts
    Member since:
    Jan 2008

    Posted 18 May 2009 Link to this post

    Hi, Georgi.

    I have already submitted this as a support ticket with number: 213186

     

    thanks a lot!

    Daniel.

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 May 2009 Link to this post

    Thank you, Daniel.

    I will check it right away.


    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 19 May 2009 Link to this post

    Hi again Daniel,

    I just answered your support ticket - for convenience I am pasting my reply below:

    Thank you for the project - now I see where the problem is. With your code, you are trying to get a reference to the image inside radalert's iframe, which however is empty - you can check that in IE Dev toolbar / Firebug or other similar tool (screenshot attached). That is why, you need to change your code to search for the image on the page itself.
    e.g. (I've changed the url to the image for demo purposes)
    ///Muestra rw alert para Ok. 
    function RWdiagAlertOk(mensaje, titulo) 
    //mostrar radalert() 
        var oWindow = radalert(mensaje, 300, 100, titulo); 
    //preparar icono a mostrar 
        var imgsrc= '_skins/Yunke/Editor/FlashManager.gif'
    //tomar icono 
        var imgicono = $get("AlertIcon"); 
     
    //mostrar icono 
        imgicono.src = imgsrc; 
     
        return false

    This way, your code will work as expected in all major browsers.





    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017