1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Zurich, Switzerland
    Posts
    23
    Vote Rating
    0
    jack83 is on a distinguished road

      0  

    Default Problems with panels in Internet Explorer 9 - insertAfter throws an exception

    Problems with panels in Internet Explorer 9 - insertAfter throws an exception


    When I use Internet Explorer 9, there occurs always a problems with one panel. It is cloned and can see multiple instances of it although there should be only one. After page reload there is only panel. Problem occurs when I change the collapse state of this panel. It is then cloned. With each collapse-expand action, one more panel is added.



    There is an exception thrown from the insertAfter from ExtJS method, which I can't really understand.
    Here is the piece of code where IE sees problems - method insertAfter, null value.

    Code:
    Ext.Element.addMethods(
    function() {
        var GETDOM = Ext.getDom,
            GET = Ext.get,
            DH = Ext.DomHelper;
        
        return {
    
            ...
       
            insertBefore: function(el){                
                (el = GETDOM(el)).parentNode.insertBefore(this.dom, el);
                return this;
            },
        
            insertAfter: function(el){
                (el = GETDOM(el)).parentNode.insertBefore(this.dom, el.nextSibling);
                return this;
            },
    In other browsers I do not have any problems at all.

    Can this problem be somehow related to the bug which was addressed here:
    http://www.sencha.com/forum/showthre...ow-in-IE-brows!

    The code of the methods has been changed between 3.4.0, which I use, and 4.0.0 versions so I cannot simply transfer it.

    I would be really grateful for your support cause this problem is very annoying and seems hard to solve for me.

    EDIT: I read that there were at least 4 bugs which had to do with IE which have been fixed in 3.4.1.

    Can anyone please assess if my problem is already known and have also been fixed in 3.4.1?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You would need to have a support subscription in order to get 3.4.1 and future updates to Ext JS 3
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Location
    Zurich, Switzerland
    Posts
    23
    Vote Rating
    0
    jack83 is on a distinguished road

      0  

    Default


    Does anyone here have any ideas how to get rid of the problem with zombie panels? The exception which see in the browser console is:

    SCRIPT5007: Unable to get value of the property ' insertbefore': object is null or undefined ext-all-debug-w-comments.js, line 3443 character 11

    Tried to google, but can't see any answer which would be applicable to this problem. This issue arises only for IE. Other browsers work perfectly. Have no idea what to do to narrow or eliminate the problem.

Thread Participants: 1