Results 1 to 5 of 5

Thread: Web App not runable with Safari on iPad BUT works with Chrome

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2014
    Posts
    8

    Default Web App not runable with Safari on iPad BUT works with Chrome

    It throws the error below

    Code:
    [Error] TypeError: undefined is not an object (evaluating 'this.items.items')
        Ext.Container#setRendered (app.js, line 28931)
        Ext.Container#setRendered (app.js, line 28934)
        Ext.Container#doItemLayoutAdd (app.js, line 28735)
        Ext.Container#onItemAdd (app.js, line 28728)
        Ext.Container#onFirstItemAdd (app.js, line 28324)
        Ext.Container#doAdd (app.js, line 28439)
        Ext.Container#add (app.js, line 28414)
        Ext.viewport.Default#onItemFullscreenChange (app.js, line 63669)
        Ext.event.Controller#doFire (app.js, line 13273)
        Ext.event.Controller#fire (app.js, line 13218)
        Ext.event.Dispatcher#doDispatchEvent (app.js, line 13578)
        Ext.event.Dispatcher#dispatchEvent (app.js, line 13563)
        Ext.mixin.Observable#doFireEvent (app.js, line 13871)
        Ext.mixin.Observable#fireEvent (app.js, line 13826)
        Ext.Component#constructor (app.js, line 19937)
        Ext.Base#callParent (app.js, line 4142)
        Ext.Container#constructor (app.js, line 28151)
        OnSite.view.Main (app.js, line 4604)
        Ext.ClassManager.instantiate1
        instantiate (app.js, line 6059)
        (anonymous function) (app.js, line 2881)
        (anonymous function) (app.js, line 69888)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        launch (app.js, line 69887)
        Ext.app.Application#onDependenciesLoaded (app.js, line 37670)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        Ext.app.Application#loadControllerDependencies (app.js, line 37650)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        Ext.app.Application#onProfilesLoaded (app.js, line 37631)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        (anonymous function) (app.js, line 37493)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        Ext.app.Application#constructor (app.js, line 37491)
        Ext.app.Application (app.js, line 4604)
        onReady (app.js, line 8604)
        onDocumentReady (app.js, line 8900)
        fn (app.js, line 7498)
        onReady (app.js, line 7502)
        onReady (app.js, line 7556)
        callback (app.js, line 8253)
        Ext.viewport.Default#doAddListener (app.js, line 63535)
        Ext.mixin.Observable#changeListener (app.js, line 13995)
        Ext.mixin.Observable#addListener (app.js, line 14140)
        Ext.mixin.Observable#on (app.js, line 3942)
        (anonymous function) (app.js, line 8279)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        (anonymous function) (app.js, line 8278)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        factoryConfig (app.js, line 8653)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        factoryConfig (app.js, line 8653)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        factoryConfig (app.js, line 8653)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        factoryConfig (app.js, line 8653)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        factoryConfig (app.js, line 8653)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        factoryConfig (app.js, line 8653)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        factoryConfig (app.js, line 8670)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        factoryConfig (app.js, line 8670)
        factory (app.js, line 8668)
        factoryConfig (app.js, line 8670)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        factory (app.js, line 8663)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
        (anonymous function) (app.js, line 8623)
        require (app.js, line 7358)
        (anonymous function) (app.js, line 2881)
        factoryConfig (app.js, line 8622)
        factory (app.js, line 8668)
        fn (app.js, line 8659)
        (anonymous function) (app.js, line 8624)
        factoryConfig (app.js, line 8653)
    Following the hint in the issue http://www.sencha.com/forum/showthre...-device-Safari, I upgraded the sdk to 2.4.1 BUT the problem not SOLVED :-(.

    Someone please tell me whether or not it is caused by the issues of Apple when introducing the great support for HTML5.


    Many thanks!

  2. #2
    Sencha Premium User lumberjack's Avatar
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    781

    Default

    Can you generate a new Touch 2.4.1 application, build it, then test on your iPad to ensure that the demo application is working? When I run through this series of steps, testing on an iPad running iOS 8, the application loads successfully without error.

    Regards,
    Brian

  3. #3
    Sencha User
    Join Date
    Mar 2014
    Posts
    8

    Default

    I am not sure if the problem is coming from Apple because the previous version of my App is still working with Safari. I tried to remove some items from the main view somehow it looks similar to the previous version then it worked. However, I have not figured out why adding some more items of the same xtype to the main view makes the app not working :-(.

  4. #4
    Sencha Premium User lumberjack's Avatar
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    781

    Default

    What was the result of generating the test application and trying it on your testing platforms?

    Regards,
    Brian

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Location
    Hyderabad
    Posts
    37

    Default

    I have also run into the same problem.
    Changing setRendered function in Container.js in src folder to below fixed my problem

    Code:
    setRendered: function(rendered) {
            if (this.callParent(arguments)) {
                var items ,i, ln;
                if(this.items){
                items= this.items.items;
                    
    if(items){
                for (i = 0,ln = items.length; i < ln; i++) {
                    items[i].setRendered(rendered);
                }
                }
    
    
                return true;
                }
            }
    
    
            return false;
        },
    --
    Abhi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •