1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    7
    Vote Rating
    0
    zulfiqar.malik is on a distinguished road

      0  

    Default ExtJS MVC app not loading on Firefox

    ExtJS MVC app not loading on Firefox


    I've got an MVC application (Node.js backend) that works fine on IE and Chrome but fails to call Ext application launch on Firefox. The application is declared as:
    Code:
    Ext.application({ name: 'uoozo.piko',
    
        appFolder: '/piko/desktop',
        controllers: [
            'AppController'
        ],
    
    
        launch: function()
        {
            Ext.create('Ext.container.Viewport', {
                layout: 'fit',
    
    
                items: {
                    xtype: "AppView"
                }
            });
        }
    });
    When I try loading this application in Firefox, my controllers and their associated views load but launch is not called. If I comment out the controllers then the application launches fine. I don't understand what the problem is? Also, why does this inconsistency exist between firefox and other browsers?

    My application directory structure is as follows

    /public/extjs - contains all extjs sources
    /public/piko/desktop/app.js
    /public/piko/desktop/controllers/AppController.js
    /public/piko/desktop/views/AppView.js
    /public/piko/desktop/model/AppModel.js

    /server/app.jade - html file, mostly empty

    The weird thing is that the controllers and all the sources are getting loaded and scripts are getting executed. Just the application launch is not called if I use any of the controllers in the main application.

    Thanks


    Last edited by zulfiqar.malik; 4 Jul 2013 at 2:26 AM. Reason: Wrong title

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    7
    Vote Rating
    0
    zulfiqar.malik is on a distinguished road

      0  

    Default


    Figured this one out. Variable scopes behave differently in firefox. I was getting an exception in one of the controllers really early in application start-up because one of the variables being accessed in that function was coming up as undefined and causing an exception. The big problem is that Firefox shows all errors and warnings in the same color and spews out so many warnings with ExtJS that the real problem got lost in the sea of yellow.

Tags for this Thread