PDA

View Full Version : useDom not working with Templates



ksachdeva
4 Apr 2007, 6:59 AM
The feature of Ext that I have fall in love with is the notion of templates. It really simplify the life. Yesterday I started testing my application on IE as some where I read that I should always test in FF first because it is a better and more compliant browser (to which I still agree) and found out that nothing is working in IE. After spending/wasting some hours I figured that by default Ext put the the html instead of creating dom elements and one should set useDom to true. I did that but my template related code did not so I am guessing that it is because for template you embed html and do not create the dom elements.

If some one could verify this.

Regards & thanks
Kapil

PS: IMHO useDom by default should be 'true' instead of 'false'

jack.slocum
4 Apr 2007, 8:22 AM
Templates are templates for building HTML. You can't use DOM with a template.

IMHO useDom by default should be 'true' instead of 'false'
Using DOM is significantly slower than using HTML insertion. I would recommend keeping it off .

ksachdeva
4 Apr 2007, 11:25 AM
Thanks for the confirmation.

How do you envision templates would be used since IE would not entertain elements that are created using them. I was using them to download scripts on demand, create the dialog boxes etc.

Regards & thanks
Kapil

jack.slocum
4 Apr 2007, 11:48 AM
The list of unsupported elements in IE is fairly short. You can still use them though, but you would need to generate the full structure. e.g. generate the full select, not the options separate, or the full table, not the rows separate.