11 Jan 2007 4:43 PM #1
Help with DomHelper & Tables
I'm using the DomHelper to create new dom nodes, which seems to work fine for everything except tables. Normally, I would create a table node, then a table body node, then create each td nodes which append to the right tr nodes, which append back to the table body node. I guess the builder returns a table node no matter if you pass in a "table", "tablebody" or "tr" tag.. or at least thats the way it seems...
Is there a correct way to build tables using your domBuilder? I'm guessing I could use a template but I don't understand how to append different cells and rows to the table based on a data set..
Any advice would be appreciated! Thanks.
12 Jan 2007 5:58 AM #2
Tables are a pain because of IE. If you aren't using the templating, something as simple as:
var dh = YAHOO.ext.DomHelper;
dh.useDom = true;
// make your tables
dh.useDom = false;
may work. It's on the list to rebuild the IE table hack for 0.40 to support tables.
By aconran in forum Ext 1.x: Help & DiscussionReplies: 14Last Post: 13 Mar 2007, 11:48 AM
By kjordan in forum Ext 1.x: BugsReplies: 2Last Post: 29 Jan 2007, 7:40 AM
By INeedADip in forum Ext 1.x: BugsReplies: 6Last Post: 2 Jan 2007, 6:08 AM
By amackay11 in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 4 Dec 2006, 9:56 AM
By zquirm in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 29 Nov 2006, 3:14 PM