[CLOSED] Ext.net is null at IE with compatibility mode

  1. #1

    [CLOSED] Ext.net is null at IE with compatibility mode

    We have problem with Ext 3.X. You can check our problem from this site: http://uygulama.stratek.com.tr/Ortaksayfa/Deneme.aspx

    Problem is if you change explorer settings to compatibility mode page is empty, if you check this site from Chrome or IE without compatibility mode everything is OK.

    When I debug page, the problem is Ext.net is null and it is stopping at first line
    Ext.net.ResourceMgr.init({id:"rm1",aspForm:"form1" });
    We have some other tools which requires compatibility mode. And because of this problem we could not use the Ext3.x and we are using Ext1.x

    Page is very simple test page:
    <form id="form1" runat="server">
        <ext:ResourceManager ID="rm1" runat="server" />
        <ext:Viewport runat="server" Layout="FitLayout">
            <Items>
                <ext:Panel runat="server">
                    <TopBar>
                        <ext:Toolbar runat="server">
                            <Items>
                                <ext:Button runat="server" ID="btn" Text="Test Button">
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <Items>
                        <ext:TextField runat="server" ID="tf" FieldLabel="Test" />
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Viewport>
    </form>
    Thanks for your help

    Stratek
    Last edited by Daniil; Mar 12, 2015 at 12:02 PM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @stratek,

    Please wrap the code in [CODE] tags.
    Forum Guidelines For Posting New Topics

    As the for the IE compatibility mode, it is not supported. Please turn it off.

    Searching in the forums with a "compatibility" keyword you might be able to find more details on this topic and suggestion how to make IE not to be in the compatibility mode automatically.
  3. #3
    Thanks for help ad your inform on CODE.

    I have found the solution. Addding following meta the head section did not work.
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    After searching the net I read this tag must be first tag or second tag after title.

    Then I changed the source code and add OnPreRender

      protected override void OnPreRender(EventArgs e)
            {
                this.Response.AddHeader("X-UA-Compatible", "IE=edge,chrome=1");
                base.OnPreRender(e);
            }
    Now it is working.
    Thanks

    Stratek
  4. #4
    Thank you very much, your solution works and has been for me very very useful!

Similar Threads

  1. [CLOSED] Compatibility Mode IE9
    By rthiney in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 21, 2014, 8:05 PM
  2. [CLOSED] Compatibility Mode in IE 9
    By aisi_it_admin in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 27, 2012, 10:38 AM
  3. [CLOSED] ComboBox in compatibility mode
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 02, 2012, 5:25 PM
  4. [CLOSED] Ext.Window causes error in IE8 with Compatibility Mode
    By jthompson in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 28, 2012, 8:55 PM
  5. [CLOSED] IE compatibility mode
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 14, 2010, 7:55 PM

Posting Permissions