1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    2
    Vote Rating
    0
    brett.gates is on a distinguished road

      0  

    Default body is null when launching app from local iframe.

    body is null when launching app from local iframe.


    Can’t launch Ext 4.1 from local iframe…
    I am using Ext inside a line of business system that provides me an html page for creating user interfaces. However, the architecture of this application is as such that when you open one of these pages it actually brings the file down to the local disk and launches it in an embedded Internet Explorer browser.
    At first I wanted to just launch my app from the page directly but due to browser security issues and cross domain access Ext would not load. I do wish there was a way around this if the app does not use AJAX or any of the AJAX components in Ext. Anyway, I got around then by simple placing a full screen iframe on the page and launched my app in there. This is a pain but I am use to it now. It works just fine in Ext 4.0.7. However now that I have upgraded to 4.1 to take advantage of a few of the other fixes this no longer works. I am getting the:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
    Timestamp: Thu, 10 May 2012 18:43:54 UTC
    Message: 'body' is null or not an object
    Line: 8021
    Char: 13
    Code: 0
    URI: http://apps.mymnl.net/extjs4/ext-all-debug.js
    If I switch the reference back to the 4.0.7 it works fine. For now this is what I will have to do, but if anyone has any suggestions I would love to hear them.

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2010
    Location
    Switzerland
    Posts
    24
    Vote Rating
    3
    g.sidler is on a distinguished road

      0  

    Default Issue fixed

    Issue fixed


    I ran into the same issue after upgrading my app from Ext JS 4.0.7 to Ext JS 4.1.0. After some research I found that in Ext JS 4.1.1 RC2 this was fixed.

    > EXTJSIV-6055 onReady does not work in an iframe in IE8 when parent is a different domain

    Gabe
    Check out Teamup Calendar - Easy-to-use planner and calendar built on Ext JS4

Thread Participants: 1

Tags for this Thread