Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
    baardos is on a distinguished road

      0  

    Default Ext.Img.disable does not work on IE

    Ext.Img.disable does not work on IE


    Hi All,

    I am using ext-js-4 version 4.0.7 and I found that calling disable on an image (Ext.Img) triggers the following error on IE when it works properly on Chrome. I have a workaround for it but it would be great to have it working transparently on all platforms.

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
    Message: Invalid target element for this operation.
    Line: 11865
    Char: 21
    Code: 0
    URI: https://.../extjs/ext-all-dev.js

    The actual place where it fails is


    Code:
    insertHtml : function(where, el, html){
                var hash = {},
                    hashVal,
                    range,
                    rangeEl,
                    setStart,
                    frag,
                    rs;
    
    
                where = where.toLowerCase();
                // add these here because they are used in both branches of the condition.
                hash[beforebegin] = ['BeforeBegin', 'previousSibling'];
                hash[afterend] = ['AfterEnd', 'nextSibling'];
    
    
                // if IE and context element is an HTMLElement
                if (el.insertAdjacentHTML) {
                    if(tableRe.test(el.tagName) && (rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html))){
                        return rs;
                    }
    
    
                    // add these two to the hash.
                    hash[afterbegin] = ['AfterBegin', 'firstChild'];
                    hash[beforeend] = ['BeforeEnd', 'lastChild'];
                    if ((hashVal = hash[where])) {
                        el.insertAdjacentHTML(hashVal[0], html); //ERROR happens here
                        return el[hashVal[1]];
                    }
    
    
                 ..............
    Regards,
    Bartek

  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


    Have you tried on a newer release?
    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
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
    baardos is on a distinguished road

      0  

    Default


    Unfortunately, I cannot do it in the stage of development we are in now. But if it is fixed it is a good news.
    Is there a workaround/patch for 4.0.7 available?

Thread Participants: 1