-
22 Oct 2012 1:50 AM #1
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
-
22 Oct 2012 5:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,117
- Vote Rating
- 453
Can I get a complete and locally runnable test case?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote