[CLOSED] Blank page IE7

  1. #1

    [CLOSED] Blank page IE7

    Hello guys

    I'm having a little issue rendering certain pages because they are entire blank only when using IE7. I took one of this pages and reduce it to a minimun code that could reproduce the problem. I'm receiving a javascript error "Expected identifier, string or number"... Once again, it happens only with IE7.

    Here is the code:

    <%@ Page Language="C#" %>
    
    <!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">
      <title></title>
    </head>
    <body>
      <form id="Form1" runat="server">
      <ext:ResourceManager ID="ResourceManager1" runat="server" />
      <ext:Store ID="Store1" runat="server">
        <Model>
          <ext:Model ID="Model1" runat="server" />
        </Model>
      </ext:Store>
      <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
        <Items>
          <ext:Panel ID="Panel1" runat="server" Region="Center" Title="Example" Layout="FitLayout" />
        </Items>
      </ext:Viewport>
      </form>
    </body>
    </html>
    Thanks.
    Last edited by Daniil; Dec 13, 2013 at 2:59 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Yes, it happens because if a Model doesn't have fields then it generates incorrect script which causes this exception in IE7. We will discuss it.

     Ext.define("App.Model1", {extend: "Ext.data.Model", }) // Comma shall not be there
    For now, provide at least one field for the model:

    <%@ Page Language="C#" %>
     
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
      <title></title>
    </head>
    <body>
      <form id="Form1" runat="server">
      <ext:ResourceManager ID="ResourceManager1" runat="server" SourceFormatting="true"  />
      <ext:Store ID="Store1" runat="server">
        <Model>
          <ext:Model ID="Model1" runat="server">
              <Fields>
                  <ext:ModelField Name="Test" />
              </Fields>
          </ext:Model>
        </Model>
      </ext:Store>
      <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
        <Items>
          <ext:Panel ID="Panel1" runat="server" Region="Center" Title="Example" Layout="FitLayout" />
        </Items>
      </ext:Viewport>
      </form>
    </body>
    </html>
  3. #3
    We are considering it as a defect and will fix shortly. Thank you for catching that and reporting to us.
  4. #4
    Quote Originally Posted by Daniil View Post
    We are considering it as a defect and will fix shortly. Thank you for catching that and reporting to us.
    That workaround works well for me, thanks.
  5. #5
    It has been fixed in the trunk. The fix will go to the next release (v2.5).

Similar Threads

  1. IE9 Blank Page after deployment
    By softmachine2011 in forum 2.x Help
    Replies: 2
    Last Post: Sep 28, 2012, 7:40 AM
  2. Blank page on IIS 7
    By mercede75 in forum 1.x Help
    Replies: 0
    Last Post: Apr 18, 2012, 6:32 AM
  3. IE9 Blank Page
    By Dominik in forum 1.x Help
    Replies: 7
    Last Post: Oct 19, 2011, 8:57 AM
  4. IE6 - Tabpanel/Page just Blank?
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Apr 27, 2010, 3:00 PM
  5. Blank Page at IE
    By fren21 in forum 1.x Help
    Replies: 4
    Last Post: Jul 27, 2009, 9:55 PM

Tags for this Thread

Posting Permissions