Problem loading an image instead of a page

2 posts, 0 answers
  1. Clive Hoggar
    Clive Hoggar avatar
    348 posts
    Member since:
    Nov 2008

    Posted 15 Apr 2010 Link to this post

    HI

    I am trying to use the RadWindow to show a larger version of an image on the page.
    However I am getting different results in IE8 and Firefox3.

    (I am using skin Black):

    1 ) Title
    In Firefox, the title bar displays the image filename, not the Title specified in RadWindow
    settings (and there is no page to load where I could specify the page title.)
    IE displays it correctly

    2 ) Window backgound
    In IE, the window background is white so I get a white border round the image, but Firefox does it correctly as Black

    How can I fix these anomalies?

    Thanks for any help!

    Clive

    Thanks

    Clive
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 20 Apr 2010 Link to this post

    Hi Clive,

    Straight to your questions:
    1. This is due to the way browsers work. Since the image file is not a page, it does not have a title and Firefox forces the image's name to be shown in RadWindow's titlebar. You can avoid this by setting the title of the dialog in OnClientShow (a small timeout may be needed).
    2. The behavior is actually due to a problem with RadWindow's black skin and we are working on fixing it - IE shows the expected behavior. If, however you want to change the iframe's background in IE as well, I suggest to use the following code (hooked to the OnClientShow property)
    function OnClientShow(sender,args)
    {
        window.setTimeout(function()
        {
            sender.get_contentFrame().contentWindow.document.body.style.backgroundColor = "Black";
        }, 0);
     }

    Regards,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top