Please note, new blog at

AJAX Diary: Use TABLEs instead of DIVs

I've recently come the realisation that DIVs are just too much hard work when it comes to writing a stable, responsive and rapid user interface framework for AJAX-applications. Our large AJAX CRM application used DIVs and CSS Expressions heavily to achieve a "windows-like", fluid/scalable user interface. Each time a new pane was added, so were a bunch of CSS rules with expressions in them (absolute positioned elements that reference other elements to set width, height, top, left, etc).

I've now gone back to the dark ages, and converted the entire thing to use good old tables. I can tell you, it is a LOT more responsive. A lot of people may not realise the CSS expressions are evaluated each time something happens in the UI. For example, if you move your mouse, then the CSS expressions are being evaluated. So you can quickly guess that if you're adding more DIVs to the DOM with CSS expressions, you're certainly not speeding things up!

I'll also mention that I am talking about an "application" here -- not a Web site, and our standard platform is Internet Explorer (HTA). You can argue all you like that I should be using DIVs for visual layout, but I think it is more important to use what works.

Tables are just easier and quicker when it comes to GRID layouts...

By Anonymous campbell, at 5/30/2006 12:29:00 am  

Dude I think everyone would agree with you, maybe not the puritans though.

By Blogger SOSensible, at 5/30/2006 06:38:00 am  

Congradulations for realizing that the reason you couldn't see the light of pure CSS/DIV/SPAN is because there are areas of the technology that are not light! (In other words, I have felt the same way for years! We use CSS deeply in our business, but try not to go so deep that it is more of a liability than an asset. We use it for it's strengths rather than using it to obtain status.)

By Anonymous Anonymous, at 9/18/2009 10:05:00 pm  



By Blogger eda, at 10/03/2009 02:41:00 pm  



By Blogger jminkler, at 11/12/2009 05:55:00 am  

Your on drugs if you think tables are easier to manage than divs. Either that or you can't code your way out of a wet paper bag.

By Blogger longge, at 6/21/2010 01:53:00 pm  

Your vuitton bags
will achieve your personality a actualization icon. The beat times acquire brought abounding of the beat vuitton handbag
and a allotment of them the vuitton handbags
bogus are brash to be at the top.

By Blogger Jhon, at 11/05/2010 10:06:00 am  

great said @SOSensible,

- John Devos
Magento Themes

By Blogger tania, at 11/11/2010 10:25:00 am  

some says use divs instead of table. I thing best process is that which according to your needs.

- Tanya
Web Designers

By Blogger electroniccigarette, at 2/25/2011 03:20:00 pm  

This comment has been removed by the author.

By Blogger ndscard, at 2/25/2011 11:06:00 pm  

r4i gold
R4 DS is also suitable Nintendo r4i. As a fan of the great Nintendo DS game console from
Nintendo that over 100 million units, Acekard 2i I am constantly looking for new games, software and
accessories are sold for Nintendo DSi R4 me. Acekard
ps3 move
ps3 controller
r4 dsi
Acekard 2i
ps3 key
r4 ds

video camera
aiptek camcorder
Shop online for digital camera,
digital SLR camera,
carson binoculars,
SLR lenses, camcorders,
memory cards,
camera accessories, camcorder accessories. Various brands Canon, Nikon, Sony , Kodak, Fujifilm, Olympus, Casio, Panasonic.

ps3 key
ps3 jailbreak
ps3 break
ps3 usb break
ps3 zpack
r4 rts
r4 ds
r4i sdhc

By Anonymous Anonymous, at 3/25/2011 12:37:00 pm  

This is a list of released and upcoming video games for the Wii video game console. wii remote controllersThe list is sorted by game titles, wii Controllerstheir developer(s), publisher(s),nintendo wii controllers release year and the Japanese, European, wii classic controllersand North American region releases respectively. For a chronology of regional release dates see Chronology of Wii games. wii Memory Cards||nintendo wii Memory Cards||memory card for wiiThis list does not include games released on Nintendo's Virtual Console or WiiWare. The Wii is backward compatible with games made for its predecessor, the GameCube.wii Replacement Parts||nintendo wii Replacement Parts||Replacement Parts for wiithe latest and greatest Wii MotionPlus!

By Blogger Chloe, at 5/07/2011 04:04:00 am  

i completely agree with what ever is written in the post
Commerical Buildings for Sale

By Blogger acekard, at 9/08/2011 04:37:00 pm  

nds card
r4 card
r4 revolution
r4 gold
r4 sdhc
r4 upgrade iii
r4i rts
r4i ultra
acekard 2i 1.4.2
m3i zero 3ds
iedge ds
cyclods 3ds
ez flash vi
move games ps3
ps3 pc controller
x360key xbox 360
3ds r4
r4 sdhc 3ds
r4 gold 3ds
dsi acekard

By Blogger SEO Services, at 9/23/2011 09:18:00 pm  

When reading this post it reminded me of something I read the other month in a landrover Book, would there be any chance I could have the authors email address, Superb blog thanks for the information.

SEO Services

By Blogger Emma, at 11/07/2011 07:14:00 pm  

Brautkleider 2011
A-Linie Brautkleider
Brautkleider in Übergrößen
Billige Brautkleider
2010 Stil Brautkleider
Prinzessin Duchesse-Linie Brautkleider
Meerjungfrauen-Stil Brautkleider
Empire Brautkleider
Gerade Linie Brautkleider
trägerloser Brautkleider
wadenlang Brautkleider
Top VIP Brautkleider Online Kaufen
Designer Brautjungfernkleider
Designer Brautmutterkleider
Designer Blumenmädchenkleider
Quinceañera Kleider
Hochzeit Jacke
Hochzeit Schleier
Hochzeit Petticoat
Hochzeit Schmuck

By Blogger Hussam, at 3/25/2012 10:12:00 pm  

Surely Ajax is being utilized a lot for creation of tables and making data entry in tables rather simpler. Cant even wonder how far this technology of PHP will move forward too...

Free SMS

By Blogger Sonal Sharma, at 3/05/2014 06:16:00 pm  

Looking for entertainment from sexy female Delhi escorts? The hottest Delhi girls are waiting for you here. Be prepared to have some of the best times of your life. Enjoy escort in Delhi with Delhi escorts agency

By Blogger Riya Jacob, at 2/23/2016 11:34:00 pm  

Such a nice post ! great love to read this one.

mumbai escorts
mumbai escorts
mumbai escorts
mumbai escorts

By Blogger Riya Jacob, at 3/09/2016 12:50:00 am  

Such a nice post ! great love to read this one.

Mumbai Escorts services

Rici Mumbai Escorts services

Delhi Escort Service

Mumbai Escorts Services

Escorts services in Gurgaon

Mumbai Escorts services

Mumbai Escorts

» Post a Comment


» Create a Link