Results 1 to 2 of 2

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Can I get a complete and locally runnable test case?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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