Jul 01, 2009, 12:44 PM
JavaScript error when using Panel.AutoLoad.Mode=IFrame
goal: display an external url inside of a panel where it is 100% of the panel size.Browser: ie 8
result: Works, doesn't work, kindof a crap shoot.
I am traping the error in Visual Sutido with a Microsoft JScript runtime error.
1) the most common error I get is on startup: where b is null.
I don't know for sure if google is sending down this js, but I suspect that it is.
b.insertRule(h,b.cssRules.length);
The top of the function always looks like this.
(function(){
var f=navigator.userAgent.toLowerCase();google.isOpera =f.indexOf("opera")!=-1;google.isIE=document.all&&f.indexOf ("msie")!=-1&& ....etc.
2) I can hit continue and it loads just fine.
3) Clicking on links inside of google, "images" with result in another error.
same js function, different line.
i.insertRule($,i.cssRules.length);
sometimes the errors don't happen.
NOTE: No code behind is needed to cause this to happen.
So, is this google causing this problem, or extjs that can't handle it.
or hopefully my code is bad...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CPSTechPortal.portals.Norton_Account.Tas ks.Create.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">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server">
</ext:ScriptManager>
<ext:ViewPort ID="ViewPort1" runat="server">
<Body>
<ext:FitLayout ID="FitLayout1" runat="server">
<ext:Panel ID="Panel1" runat="server" Border="false" Header="false">
<AutoLoad Mode="IFrame" ShowMask="true" Url="http://www.google.com" />
<Body>
</Body>
</ext:Panel>
</ext:FitLayout>
</Body>
</ext:ViewPort>
</form>
</body>
</html>
result: Works, doesn't work, kindof a crap shoot.
I am traping the error in Visual Sutido with a Microsoft JScript runtime error.
1) the most common error I get is on startup: where b is null.
I don't know for sure if google is sending down this js, but I suspect that it is.
b.insertRule(h,b.cssRules.length);
The top of the function always looks like this.
(function(){
var f=navigator.userAgent.toLowerCase();google.isOpera =f.indexOf("opera")!=-1;google.isIE=document.all&&f.indexOf ("msie")!=-1&& ....etc.
2) I can hit continue and it loads just fine.
3) Clicking on links inside of google, "images" with result in another error.
same js function, different line.
i.insertRule($,i.cssRules.length);
sometimes the errors don't happen.
NOTE: No code behind is needed to cause this to happen.
So, is this google causing this problem, or extjs that can't handle it.
or hopefully my code is bad...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CPSTechPortal.portals.Norton_Account.Tas ks.Create.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">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server">
</ext:ScriptManager>
<ext:ViewPort ID="ViewPort1" runat="server">
<Body>
<ext:FitLayout ID="FitLayout1" runat="server">
<ext:Panel ID="Panel1" runat="server" Border="false" Header="false">
<AutoLoad Mode="IFrame" ShowMask="true" Url="http://www.google.com" />
<Body>
</Body>
</ext:Panel>
</ext:FitLayout>
</Body>
</ext:ViewPort>
</form>
</body>
</html>