This is a migrated thread and some comments may be shown as answers.

Cross-browser issue

2 Answers 70 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Volodya Bychko
Top achievements
Rank 1
Volodya Bychko asked on 11 Nov 2010, 08:58 AM
Hello Telerik,

I have problem with RadHtmlPlaceHolder when open in different web browser.
When I set RadHtmlPlaceHolder.HtmlSource property to html code:
<html>
 <head>
   <title></title>
   <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>——————————————————————————————————————————</b>
<b>From:</b>       11.11.2010 07:00             
<b>Till:</b>       12.11.2010 07:00             
<b>——————————————————————————————————————————</b>
<b>Printed by:</b> Afgemeld..                   
            11.11.2010 08:31             
<b>——————————————————————————————————————————</b>
                                           
</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>
</body>
</html>
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.

Thanks,
Volodya.

2 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 11 Nov 2010, 10:20 AM
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
0
Volodya Bychko
Top achievements
Rank 1
answered on 11 Nov 2010, 11:00 AM
Thanks for answer!

I resolved my problem successful according your advice.

Thanks,
Volodya
Tags
HTMLPlaceHolder
Asked by
Volodya Bychko
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Volodya Bychko
Top achievements
Rank 1
Share this question
or