JavaScript error when using Panel.AutoLoad.Mode=IFrame

  1. #1

    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>


  2. #2

    RE: JavaScript error when using Panel.AutoLoad.Mode=IFrame

    swaping out google for ajaxian works.<AutoLoad Mode="IFrame" ShowMask="true" Url="http://ajaxian.com" />


    It would be beyond belief that the google guys would write bad js code ;)


    Still wondering if it is them or if this framework can't handle this sort of thing.


  3. #3

    RE: JavaScript error when using Panel.AutoLoad.Mode=IFrame

    Hi,

    Some companies to inject in own site js code which prevents correct work in iframe. Just security feature

Similar Threads

  1. Autoload url without mode fails in ext:panel
    By jaswantsinghrana in forum 1.x Help
    Replies: 1
    Last Post: Sep 24, 2010, 4:18 AM
  2. Replies: 5
    Last Post: Feb 16, 2010, 6:02 PM
  3. Replies: 1
    Last Post: Jan 12, 2010, 9:30 PM
  4. [CLOSED] Error using AutoLoad in panel
    By Jurke in forum 1.x Help
    Replies: 4
    Last Post: Sep 11, 2008, 9:15 AM
  5. Replies: 3
    Last Post: Jul 11, 2008, 10:41 AM

Posting Permissions