Cross-browser issue

3 posts, 1 answers
  1. Volodya Bychko
    Volodya Bychko avatar
    10 posts
    Member since:
    May 2010

    Posted 11 Nov 2010 Link to this post

    Hello Telerik,

    I have problem with RadHtmlPlaceHolder when open in different web browser.
    When I set RadHtmlPlaceHolder.HtmlSource property to html code:
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css"><!--.fsmall {font-size:8mm;}.fwide {font-size:16mm;}.bw {color: #000000; background-color: #FFFFFF}.rw {color: #ff0000; background-color: #FFFFFF}.wb {color: #ffffff; background-color: #000000}.rb {color: #ff0000; background-color: #000000}--></style> </head><body bgcolor="#FFFFFF" text="#000000">
    <div style="font-family: Courier New, Courier, mono"><table border="1" bordercolor="#cccccc" cellpadding="0" cellspacing="0"><tr><td>
    <pre><font class="fsmall"><span class="bw"></span></font><font class="fwide"><b><span class="wb">    FINANCIAL - X    </span></b></font><font class="fsmall"><span class="bw">
    <b>From:</b>       11.11.2010 07:00             
    <b>Till:</b>       12.11.2010 07:00             
    <b>Printed by:</b> Afgemeld..                   
                11.11.2010 08:31             
    </span><span class="wb">               Begin Report               </span><span class="bw">
    </span></font><font class="fwide"><b><span class="wb">   Overview Media    </span></b></font><font class="fsmall"><span class="bw">
    </span></font><font class="fwide"><b><span class="wb"> Customers Deposits  </span></b></font><font class="fsmall"><span class="bw">
    </span></font><font class="fwide"><b><span class="wb">    Overview VAT     </span></b></font><font class="fsmall"><span class="bw">
    </span></font><font class="fwide"><span class="wb">       Control       </span></font><font class="fsmall"><span class="bw">
    </span><span class="wb">              End of Report               </span><span class="bw">
    </pre></td></tr></table><pre><font class="fsmall"><span id="cspan">                                          </span></font></pre></div>
    then open in IE8 and got view without some css style (ie8.png), but in IE9 (ie9.png) and Firefox(firefox.png) view of html is correct.

    Could You, please explain me how I can display html in IE8 such as in IE9 or firefox?

    Please help me to resolve this issue.

  2. Answer
    Kiril Stanoev
    Kiril Stanoev avatar
    1508 posts

    Posted 11 Nov 2010 Link to this post

    Hi Volodya,

    This scenario is not supported. Instead you can create an .html page with your HTML code and give it as SourceUrl to RadHtmlPlaceholder.

    The issue you experience comes from the fact that the HTML you pass as HtmlSource gets inserted in the middle of the page, thus creating nested documents, which might not be supported by IE8.

    Sincerely yours,
    Kiril Stanoev
    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
  3. DevCraft R3 2016 release webinar banner
  4. Volodya Bychko
    Volodya Bychko avatar
    10 posts
    Member since:
    May 2010

    Posted 11 Nov 2010 Link to this post

    Thanks for answer!

    I resolved my problem successful according your advice.

Back to Top