Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    3
    Vote Rating
    0
    imatechnologies is on a distinguished road

      0  

    Default Template.append is not working with Chrome and Firefox new versions.

    Template.append is not working with Chrome and Firefox new versions.


    Hi all,

    we have an web application using Extjs and it was working very well.

    Since Firefox 10, some code using Template and the append method doesn't work anymore.
    No error appears but the template is no more inserted in the page.

    I've tried on Chrome but it is the same.

    Only IE is working.

    Somebody have an idea ?

    Here our code :

    //Selection of the template through a listbox
    var tplId = typeSelection + "_template";
    var tplElem = Ext.get(tplId);
    var t;
    if (tplElem) {
    t = Ext.Template.from(tplId);
    }
    else {
    t = Ext.Template.from("empty_template");
    }

    //perso is a table with id "ec25_form_personnal" where the template will be inserted
    var perso = Ext.get("ec25_form_personnal");
    var bodyPerso = Ext.DomQuery.selectNode("tbody", perso.dom);
    //remove the precedent template if it exists before the insert of the new choice
    if(bodyPerso) {
    var elem = Ext.get(bodyPerso);
    elem.remove();
    }

    t.append(perso, {form: this.getFormId()});


    Thanks
    Fab

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    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


    Can I get a complete and locally runnable test case?
    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.

Thread Participants: 1