RadWindow containing html page with javascript: Browsers display problem

8 posts, 0 answers
  1. Alain
    Alain avatar
    33 posts
    Member since:
    Feb 2009

    Posted 11 Aug 2009 Link to this post

    Hello,

    I have the problem that with various browsers, the content of a html page in a RadWindow is displayed completely wrong when this html page contains javascript.
    If I try to open directly the html page into these browsers, this one is displayed correctly.

    Tested browsers:
    • Internet Explorer 6 & 7: Correct display.
    • Firefox 3 & 3.5: Wrong display.
    • Opera 9.64: Wrong display.

    Web Server:
    • IIS 7 (2008)

    ASP.NET Components:
    • Telerik ASP.NET AJAX 2009 Q2 (701)

    Situation:
    Test.aspx: Contains a RadRotator. After clicking on an item on this one, a RadWindow with a html page named Test.html is open.

    <telerik:RadWindow ID="BlaControl" runat="server" 
                                   ShowContentDuringLoad="false" 
                                   ReloadOnShow="true" 
                                   VisibleStatusbar="false" 
                                   AutoSize="true" 
                                   Behaviors="Close"
    </telerik:RadWindow> 
    <telerik:RadCodeBlock ID="BlaScript" runat="server"
    <script type="text/javascript"
    function rad_ItemClicked_Handler(sender, args) { 
                    var nRadWindow = $find('<%=BlaControl.ClientID%>');                                               
                                     
                    nRadWindow.setUrl('Test.html'); 
                    nRadWindow.show(); 
                } 
    </script> 
    </telerik:RadCodeBlock> 

    Test.html: The page in the RadWindow
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    <html lang="fr" xml:lang="fr"
    <head
    <title>Test (France)</title> 
    </head> 
    <body><center
     
    <script language="JavaScript" type="text/javascript"
    function Test_Progress(progress) { 
     window.status=progress; // An example of how the progress value can used 
    </script> 
     
    Coucou4 
    </center> 
    </body> 
    </html> 

    And I obtain as result in the RadWindow:
    �������4�ON�0��z��j�Te�/�i)� V�$�?ȵ#g�!NƂ#q�ݽ��<��~�����Q�^@A[ �Nj�u��i��<���U|���w 2eB�/�����q�4��L=mr?�{e�lyRw/���ÁߥH��e��~+gǪ�H�X%(`5��J�.��R �R+ ]���1��N���#�T���[R'�����"ǀ݈��t�}T-!�oq?�3�raK+���微�� ��:�1|Д*ՍW� [�����^l+��3(tT G`'�EH�[c:|�K���#mm�=\�;��Kÿ�7�{p� 

    Any Idea?

    Best regards.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Aug 2009 Link to this post

    Hi Alain,

    I tried to reproduce the problem locally but to no avail - everything is working as expected. Have you tried opening that content page in an IFRAME? I am asking you this because RadWindow is basically an IFRAME.
    At this point this looks like some kind of encoding problem, however without having a better view over your exact setup we cannot be sure. Please open a support ticket and send us a small sample project where this issue could be observed. We will check it and do our best to help.

    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.
  3. German
    German  avatar
    26 posts
    Member since:
    Jun 2009

    Posted 11 Aug 2009 Link to this post

    Could you please reply to my thread: "Problem with RadPrompt() codebehind"
    Thank you I really appreciate it
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Aug 2009 Link to this post

    Hi German,

    I just did that. Please note that telerik's forums are community service and although we monitor them closely, we do not guarantee a timely response here. If you want to contact telerik's support, the best way to do this is to send a support ticket from your Client.Net account. This way, the ticket will be handled by the team that is responsible for the control you have problems with and you will be guaranteed a reply within the corresponding timeframe.


    Best wishes,
    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.
  5. Alain
    Alain avatar
    33 posts
    Member since:
    Feb 2009

    Posted 20 Aug 2009 Link to this post

    Hello Georgi,

    Thank you for your answer.

    We investigate a lot to see from where come the problem and it was a combination of IIS7 and web.config:
    Under IIS7, our application used Integrate Application Pool mode, that came the problem.

    If we switch back to IIS6, all is ok.
    And under IIS7, if we use the classicNET application pool, it is also ok.

    We continue to search what is missing in our web.config to be compatible with IIS7, Integrate mode, and the RadWindow.
    We took web.config settings from your demo, but without success for browsers other than Internet Explorer.

    Best regards.

  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 21 Aug 2009 Link to this post

    Hi Alain,

    Have you tried replacing the RadWindow with an IFRAME? I am asking you this because we believe that the problem is not directly related to the RadWindow control. Please try the following code - just put it on a page and run it in the browser after replacing the path to the actual Test.html that you are using. This will show whether the problem is related to the RadWindow control:

    <form id="form1" runat="server"
    <script type="text/javascript"
        function loadFrame() 
        { 
            var myframe = document.getElementById("iframe1"); 
            //change the path to the actual location of Test.html 
            myframe.src = "http://mysite/Test.html"
        } 
     
    </script> 
    <iframe id="iframe1" width="500px" height="500px"></iframe> 
    <br /> 
    <button onclick="loadFrame(); return false;"
        open Test.html in the IFRAME</button> 
    </form> 

    If the problem can be reproduced only when RadWindow is involved, please send us a sample project so we could check it in test environment matching yours. Just make sure that the project can be run locally and send it to us in a support ticket.


    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.
  7. Alain
    Alain avatar
    33 posts
    Member since:
    Feb 2009

    Posted 26 Aug 2009 Link to this post

    Hello Georgi,

    Note: Our full test.html page is composed of Javascript and Java applet; the one tested initially was only with Javascript.

    Under Firefox browser 3.x and Opera 9.64:
    • We tested your iframe workaround and it works correctly with our full test.html page, IIS7 and ClassicNET Pool application.
    • If we switch back to RadWindow, the Java applet is launched, but not displayed, it freezes.

    No error is displayed in Java Console.

    We will fill a support ticket with this issue and attach a small project with it.

    Best regards,
    Alain

  8. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 27 Aug 2009 Link to this post

    OK Alain,

    Just make sure that the project is not missing anything and attach it to the support thread - I will check it right away.


    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top