ScriptResource.axd Compression Causing Issues in IE8

6 posts, 1 answers
  1. Jason Rayner
    Jason Rayner avatar
    8 posts
    Member since:
    Apr 2005

    Posted 20 Mar 2009 Link to this post

    Greetings,

    We are using RadControls Ajax 2009.1 311 and have encountered a javascript error that prevents modules from being dynamically placed in Page_Init. We do not experience this problem in any other browser except for IE8.

    In the Page_Init we are using 
    ScriptManager.RegisterStartupScript(  
    dock,  
    GetType(),  
    "AddDock" + controlId,  
    string.Format(@"function _addDock{2}() {{  
    Sys.Application.remove_load(_addDock{2});  
    $find('{1}').dock($find('{0}'));  
    $find('{0}').doPostBack('DockPositionChanged');  
    }};  
    Sys.Application.add_load(_addDock{2});", dock.ClientID, FindControl(zone).ClientID, controlId), true); 

    The error that IE8 gives is  

    ---------------
    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
    Timestamp: Sat, 21 Mar 2009 03:52:04 UTC

    Message: Invalid argument.
    Line: 597
    Char: 1
    Code: 0
    URI: /ScriptResource.axd?d=XKpUX8S7IKwR9HGDHQJQ7PjplCbQNpuJI5GQbMZueaFWR37nx5jBKBTPzX59hwo70&t=ffffffffafb50a67
    ---------------

    We noticed that we view the output of this script resource in other browsers we get the javascript output but when we try to view it using IE8 we get compressed output. When checked we could see that there is HTTP compression being applied to the resource, but we haven't setup any HTTP compression for this project yet.

    Are the Telerik controls compressing the output for their Scripts and if so, is there any way to turn this compression off so that we can validate this theory that IE8 isn't decompressing the Gzipped output properly.

    Regards,

    Jason

     

  2. John Horlock
    John Horlock avatar
    22 posts
    Member since:
    Jun 2007

    Posted 23 Mar 2009 Link to this post

    Has there been any information on this as we are experiencing the same issue in IE8 as well

    Thanks
    John
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 23 Mar 2009 Link to this post

    Hello John Horlock,

    This problem is related to IE8 and RadDock's code that preserves its original z-index. We will fix it for the next RadControls for ASP.NET AJAX release.

    The code below is a workaround for this problem:

    ScriptManager.RegisterStartupScript(
    dock,
    this.GetType(),
    "AddDock",
    string.Format(@"function _addDock() {{
    Sys.Application.remove_load(_addDock);
    $find('{0}').originalZIndex = '';  
    $find('{1}').dock($find('{0}'));
    $find('{0}').doPostBack('DockPositionChanged');
    }};
    Sys.Application.add_load(_addDock);"
    , dock.ClientID, DropDownZone.SelectedValue),true);

     

    Let us know if you face any other problems.


    All the best,
    Petio Petkov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. Joseph
    Joseph avatar
    32 posts
    Member since:
    Oct 2008

    Posted 30 Mar 2009 Link to this post

    Hello, this fixed the same issue for me, however I noticed that if I have a dock that floats undocked above another docked panel, the icon files appear on top of the floating dock's content/body.  Is this a side effect of of the z-index not being restored correctly?  I am overriding the default icons for the Vista skin btw, like this, so perhaps this is a different bug but a related issue (ie8):

    .raddock a.rdCollapse  
    {  
        background-image:url('images/marketing/collapse.gif');  
    }  
    .raddock a.rdExpand  
    {  
        background-image:url('/images/marketing/expand.gif');  
    }  
    .raddock a.rdClose  
    {  
        background-image:url('/images/marketing/close.gif') !important;  
    }  
    .raddock a.rdPin  
    {  
        background-image:url('/images/marketing/pin.gif');  
    }  
    .raddock a.rdUnpin  
    {  
        background:url('/images/marketing/unpin.gif'repeat-x;  
    }  
    .raddock a.rdCustom  
    {  
        background:url('/images/marketing/custom.gif');  


    thanks,
    joseph
  6. Joseph
    Joseph avatar
    32 posts
    Member since:
    Oct 2008

    Posted 30 Mar 2009 Link to this post

    BTW, not sure if this will fix the original poster's issue, but I do know that I had to set this metta http-equiv property on my Page to get it to appear correctly in IE8 with all of my original css content.  Worked like a charm.  Not sure how/if it affects the javascript, but thought I'd offer it up for others faced with the same delima (rendered page / dock contents look different between IE8 and IE7): 

    <head runat="server">   
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 

     

  7. Aaron Jessen
    Aaron Jessen avatar
    14 posts
    Member since:
    Feb 2009

    Posted 24 Aug 2012 Link to this post

    Holy s#&%, Joseph...I know this post is REALLY old, but that one line you posted about the meta tag solved a problem that ruined a 7-month project for our distribution network. I custom-built a system especially for them, and they couldn't render any of it on their internal network, which was committed to IE8. Support tickets to Telerik didn't help, so we scrapped the whole thing. Now that I'm trying to revive (salvage) it for our customers, I FINALLY have a breakthrough.

    I wish I could give you my Telerik points. Thanks a million.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017