Thursday, February 25, 2010

Dynamic table creation using Javascript

As u might know, i was struggling with Dojo Data grid and data table concepts...
so i decided to go back to basic...
I thought of implementing the table using normal DOM manipulation API like createElement, appendChild etc...

This particular link made my task a lot easy..

http://www.eggheadcafe.com/community/aspnet/3/83650/dynamic-creation--of-html.aspx
http://www.codeproject.com/KB/HTML/html.aspx

This gave me the basic code for create dynamic tables...
there were few bugs which i fixed ...
But it has a big drawback... I want my table to be wrapped in some kind of scrollable div so that in case i need to limit its height in future i can get it to work...

Let me see how to do that next.. Till then see yup/./

SJ

No comments:

Post a Comment