PDA

View Full Version : [CLOSED] Blank page IE7



posser
Dec 11, 2013, 3:56 PM
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.

Baidaly
Dec 11, 2013, 9:17 PM
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>

Daniil
Dec 12, 2013, 4:17 PM
We are considering it as a defect and will fix shortly. Thank you for catching that and reporting to us.

posser
Dec 12, 2013, 5:05 PM
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.

Daniil
Dec 13, 2013, 2:59 AM
It has been fixed in the trunk. The fix will go to the next release (v2.5).