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

ScriptResource.axd Compression Causing Issues in IE8

5 Answers 203 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Mario Lozano
Top achievements
Rank 1
Mario Lozano asked on 21 Mar 2009, 04:08 AM
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

 

5 Answers, 1 is accepted

Sort by
0
John Horlock
Top achievements
Rank 1
answered on 23 Mar 2009, 10:24 AM
Has there been any information on this as we are experiencing the same issue in IE8 as well

Thanks
John
0
Accepted
Petio Petkov
Telerik team
answered on 23 Mar 2009, 06:01 PM
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.
0
Joseph
Top achievements
Rank 1
answered on 30 Mar 2009, 07:19 PM
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
0
Joseph
Top achievements
Rank 1
answered on 30 Mar 2009, 07:34 PM
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" /> 

 

0
Aaron Jessen
Top achievements
Rank 1
answered on 24 Aug 2012, 09:48 PM
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.
Tags
Dock
Asked by
Mario Lozano
Top achievements
Rank 1
Answers by
John Horlock
Top achievements
Rank 1
Petio Petkov
Telerik team
Joseph
Top achievements
Rank 1
Aaron Jessen
Top achievements
Rank 1
Share this question
or