Error open RadWindow in IE8 ?

7 posts, 0 answers
  1. DucAnh
    DucAnh avatar
    24 posts
    Member since:
    Aug 2011

    Posted 22 Aug 2011 Link to this post

    Hi everybody!
    I have a problem when I try to open radwindow: I can't open radwindow in IE8 because javascript error. But I browser my project in FireFox, it can run. Have you any idea? Thanks you very much!
    My code :
    function GetRadWindow() {
              
             var oWindow = null;
             if (window.radWindow) oWindow = window.radWindow;
             else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
             return oWindow;
         }
     
         function Close() {            
             GetRadWindow().close();
         }
     
         function CloseAndRebind(args) {              
             GetRadWindow().BrowserWindow.refreshGrid(args);          
             GetRadWindow().close();
         }
          
         function CloseWithArg() {
             var customArg = $get("TextBox1").value;
             GetRadWindow().close(customArg);
         }
          
         function openTramWD()
         {         
             var oWnd = radopen("myRadWindow.aspx","radWindowfrTram");        //Error here!   
         }
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4630 posts

    Posted 24 Aug 2011 Link to this post

    Hi Ducanh,

      Can you confirm that this is an issue with IE8 and not IE9? Which version of our controls are you using? Is it a version from before Q1 2011? If this is the case I would advise that you upgrade  to the latest, since versions prior to Q1 2011 do not support IE9, as they have been released before IE9 was released. Then IE9 introduced a breaking change in the way iframes are created, which often results in a JavaScript error with the RadWindow. This has been fixed since Q1 2011.


    All the best,
    Marin
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DucAnh
    DucAnh avatar
    24 posts
    Member since:
    Aug 2011

    Posted 24 Aug 2011 Link to this post

    Thanks Admin!
    Now, I am using version Q1 2010. I will try with lastest version.
  4. Elio
    Elio avatar
    5 posts
    Member since:
    Jul 2011

    Posted 24 Aug 2011 Link to this post

    Hello I am getting the same Issue as the poster.

    In IE8 the radwindow fires a javascript Error.

    Invalid Error: Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aes-ES%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.712.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aes-ES%3af9722142-3e1c-4803-86df-ecfc0d24f144%3a16e4e7cd%3aed16cbdc%3a58366029%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3aa7e79140%3aaa288e2d%3a874f8ea2%3a19620875%3a490a9d4e%3a407acb1c%3ae330518b%3ac8618e41%3ae4f8f289%3abd8f85e4, Línea 6 Carácter 63405

    The problem specifically happens when I try to open Multiple radwindows at the same time from a non-postback button on a grid (Multiple view/edition of rows in database).

    It doesn't happen in IE9, Firefox nor Chrome... just IE8

    NOTE: in my case it seems that the line of code inside the resoure file that causes the error seems to say a.left = ????
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4630 posts

    Posted 25 Aug 2011 Link to this post

    Hello Elio,

    Please try using a small timeout when opening multiple RadWindows, for example:
    setTimeout(function(){
        radopen(null, null);
    }, 0);
    setTimeout(function(){
        radopen(null, null);
    }, 0);
    setTimeout(function(){
        radopen(null, null);
    }, 0);

    If this does not help I would need to examine some markup/JavaScript that reproduces this issue so that I can investigate it. I would also need some information on the version of our controls that you are using. A possible way is to try upgrading to the latest to see if it helps. 


    Best wishes,
    Marin
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Elio
    Elio avatar
    5 posts
    Member since:
    Jul 2011

    Posted 25 Aug 2011 Link to this post

    Hello Marin, that "solution" did workout as intended, but the telerik Scripts still fire a javascript error that seems weird to me to be honest.

    There must be a way that the inner script may identify this issue and "PATCH" itself maybe.

    Regards.
    Elio
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4630 posts

    Posted 26 Aug 2011 Link to this post

    Hi Elio,

    I am glad that a workaround is possible for your case. I am sorry to say, but I cannot provide a better answer since I do not know how to reproduce this issue, so I cannot debug it and see what is going on. If you open a support ticket and send us a simple, runnable demo where we can observe this behavior we will be able to provide a more accurate answer. If it is indeed an issue with our controls we will gladly reward your findings with some Telerik points.


    Best wishes,
    Marin
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top