Results 1 to 2 of 2

Thread: fireFn is null or not an object

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    68
    Vote Rating
    3
      0  

    Default fireFn is null or not an object

    I am trying to use observable and am getting fireFn is null or not an object when trying to use the fireEvent

    com.santra.LoginHandler = Ext.extend(Ext.util.Observable, {
    constructor: function(config){
    com.santra.LoginHandler.superclass.constructor.call(this, config)
    }
    });
    com.santra.LoginHandler.prototype.performLogin = function(user) {
    if(user === undefined || user == null) {
    return;
    }

    var dlgt = this.loginCallback.createDelegate(this,[], true);

    ServerFunctions.login(user, dlgt);
    };
    com.santra.LoginHandler.prototype.performLogout = function(user) {
    this.fireEvent('logout');
    window.location.reload(true);
    };
    com.santra.LoginHandler.prototype.loginCallback = function(user) {
    alert('login occo');
    this.user = user;

    if(this.user === undefined || this.user == null) {
    return;
    }

    var userInfo = this.user['userInfo'];

    if(userInfo === undefined || userInfo == null) {
    return;
    }

    var isLoggedIn = userInfo['isLoggedIn'];

    if(isLoggedIn === undefined || isLoggedIn == null || Ext.util.Format.trim(isLoggedIn) == 'false') {
    return;
    }

    var user = this.user;
    alert('niceos');

    this.fireEvent('login', this.user);
    alert('good');
    };

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    This usually means that you registers a (login/logout) event handler with an unknown function.

Similar Threads

  1. [B]'null' is null or not an object IE7 / el is null in FireFox in ExtJS[/B]
    By Jigesh Shah in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 20 May 2010, 4:54 PM
  2. 'null' is null or not an object IE7 / el is null in FireFox in ExtJS
    By Jigesh Shah in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 19 May 2010, 5:48 PM
  3. fireFn is null or not an object
    By kondurucs in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 12 Feb 2009, 1:00 PM
  4. Strange null or null is not an object error
    By wrhighfield in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 3 Mar 2008, 3:13 PM
  5. Null is Null or not an Object Error
    By ajsoellner in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 26 Feb 2007, 4:08 AM

Tags for this Thread

Posting Permissions

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