Results 1 to 3 of 3

Thread: Need help with IE8 - Object expected error

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    7

    Default Need help with IE8 - Object expected error

    I need help with an Object expected error in IE8 (ExtJS 4)

    The error message is:
    Object Expected
    and it points to ext-all.js Line 15 character 42689

    On further debugging the line that is throwing the error is in bold below:

    Code:
    instantiateByAlias:function(){var h=arguments[0],g=e.call(arguments),i=this.getNameByAlias(h);if(!i){i=this.maps.aliasToName[h];Ext.syncRequire(i)}g[0]=i;return this.instantiate.apply(this,g)},instantiate:function(){var i=arguments[0],h=e.call(arguments,1),j=i,k,g;if(typeof i!=="function"){g=this.get(i)}else{g=i}if(!g){k=this.getNameByAlias(i);if(k){i=k;g=this.get(i)}}if(!g){k=this.getNameByAlternate(i);if(k){i=k;g=this.get(i)}}if(!g)
    {Ext.syncRequire(i);g=this.get(i)} //debugger points here
    return this.getInstantiator(h.length)(g,h)}
    I am getting this issue only if this application is running on an external url (www.<env-name>....). Internal url (localhost) does not throw this error.

    Any help will be highly appreciated.
    Thanks

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,102
    Answers
    113

    Default

    use ext-all-debug.js instead and see if you can find out where exactly the error is happening. what part of your code uses URLs? try setting breakpoints there and debug.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    7

    Default

    Code:
    instantiateByAlias: function() {
                var alias = arguments[0],
                    args = slice.call(arguments),
                    className = this.getNameByAlias(alias);
    
                if (!className) {
                    className = this.maps.aliasToName[alias];
                    Ext.syncRequire(className);
                }
                args[0] = className;          //error here
    
                return this.instantiate.apply(this, args);
            },
    This application is hosted on the client's network. The issue happens in IE8 when the url used to access the application is www.<company-url>. There is no issue on the local development environment.

Posting Permissions

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