ScriptContainer location not honoured in 0.8 against 0.7
Coolite Toolkit Version 0.8.2 now available for DOWNLOAD | See also Examples Explorer | Version 1.0 available ~Jan 2010
 

Coolite Forums

Welcome Guest ( Login | Register )
 
ScriptContainer location not honoured in 0.8...
Subscribe
Last Login: Today @ 2:47:59 AM
Posts: 4,
Posted 6/9/2009 5:54:05 AM

Group: Coolite Early Adopter
When using 0.7 I identified an issue whereby without having a ScriptContainer at the end of the <head> tag, the position of the "<meta http-equiv="X-UA-Compatible" content="IE=7" />" I was using to persuade IE8 to match IE7 rendering was not being honoured.

Adding the ScriptContainer tag solved this issue, but 0.8 seems to regress this behaviour and places the "<!-- Coolite Toolkit for ASP.NET with ExtJS [Professional Edition]. Version 0.8.0.30406. -->" and stylesheets at the top of the <head> element, which breaks the X-UA-Compatible flag.

I've had a look at the code for ScriptContainer and it's definately changed as the render method now outputs a placeholder. Is there any way for me to solve this other than producing a custom build, or waiting for the next release of Coolite?

Minimal test-case:


<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>Specimen Page</title>
    <ext:ScriptContainer runat="server" ID="extJsScriptContainer">
    </ext:ScriptContainer>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ScriptManager runat="server" ID="extjsScriptManager"></ext:ScriptManager>
        <ext:Panel runat="server" ID="testPanel" Header="true" Title="Test" Height="300" Width="400"></ext:Panel>
    </div>
    </form>
</body>
</html>


Expected behaviour: The X-UA-Compatible tag should be the first child in the rendered markup for the <head> tag
Actual behaviour: The Coolite CSS/"vanity comment" are inserted at the top of the head tag
Last Login: Today @ 10:02:17 PM
Posts: 3,747,
Posted 6/9/2009 10:14:30 AM

Group: Core Development Team
Hi RobertWrayUK,

Try adding a new <ext:StyleContainer> into the <head> where you'd like the Toolkit .css files rendered.

Example

<ext:StyleContainer runat="server" />

Hope this helps.

--
Geoffrey McGill
Coolite Inc.
Development Team
Forum Guidelines | Coolite Examples | Coolite API Docs | ExtJS API Docs | Twitter
Last Login: Today @ 2:47:59 AM
Posts: 4,
Posted 6/10/2009 1:27:31 AM

Group: Coolite Early Adopter
 The StyleContainer has solved the issue - thanks! =)
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 11:15pm