• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Appending new table to existing table

 
Girish Kumar Prabhakar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a table which have one row and one column. Inside this i have a second table(inner table).
I want to add a new table to this existing table through javascript.
My code is working for Mozilla FF but not for IE.

Can someone please tell me whats wrong in this code.



Thanks in advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you are doing maintable.appendChild(mytable) you are basically creating markup that would look something like this



I bet that is not what you are after.

Eric
 
Girish Kumar Prabhakar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

Yes, i am not looking for this.

what i want is i have a main table. Inside thid main table there is already one table.(for eg innertable1).
I want to add a new table( for eg innertable2) to main table.

Something like this :

<maintable>
<innertable1> //which is already there.
<innertable2> // the one created dynamically.
</maintable>

Hope i am able to explain properly.

Thanks.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well you would have to add a new row to the main table and add it or append it to the same cell the inner table is in.

Eric
 
Girish Kumar Prabhakar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Eric.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic