Click here to Skip to main content
15,893,668 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: executing php code from mysql Pin
Marc Firth15-Mar-09 23:43
Marc Firth15-Mar-09 23:43 
GeneralRe: executing php code from mysql Pin
Ahmad Hamid16-Mar-09 0:08
Ahmad Hamid16-Mar-09 0:08 
GeneralRe: executing php code from mysql Pin
Marc Firth16-Mar-09 1:39
Marc Firth16-Mar-09 1:39 
QuestionI AM JUST GETTING STARTED Pin
patrice pilgrim15-Mar-09 2:29
patrice pilgrim15-Mar-09 2:29 
AnswerRe: I AM JUST GETTING STARTED Pin
scottgp15-Mar-09 10:24
professionalscottgp15-Mar-09 10:24 
GeneralRe: I AM JUST GETTING STARTED Pin
tech60318-Mar-09 15:58
tech60318-Mar-09 15:58 
AnswerRe: I AM JUST GETTING STARTED Pin
Marc Firth15-Mar-09 23:28
Marc Firth15-Mar-09 23:28 
Questioncreate a nested table with javascript Pin
emilio_ts14-Mar-09 5:17
emilio_ts14-Mar-09 5:17 
hi
my html form contains a table tag .

i would like to populate this table using a javascript function.
my probllem is that i created a table that contains another table inside on of the
tags. i tried to write the most basic code:

var myTable = document.createElement('tbody');
var row1 = document.createElement('tr');
var col1 = document.createElement('td');
var but1 = document.createElement('input');
but1.setAttribute('type','button');
but1.setAttribute('value','button1');

col1.appendChild(but1);
row1.appendChild(col1);
myTable.appendChild(row1);

var row2 = document.createElement('tr');
var col2 = document.createElement('td');
var nestedTbl = document.createElement('tbody');
var row3 = document.createElement('tr');
var col3 = document.createElement('td');
var but2 = document.createElement('input');
but2.setAttribute('type','button');
but2.setAttribute('value','button2');

col3.appendChild(but2);
row3.appendChild(col3);
nestedTbl.appendChild(row3);

col2.appendChild(nestedTbl);
row2.appendChild(col2);
myTable.appendChild(row2);

MainTable.appendChild(myTable);


when i run the javascript function it creates the table 'MyTable' and shows the first button but ignores completely from the inner table.

is there a way to achieve my goal ?

AnswerRe: create a nested table with javascript Pin
tech60318-Mar-09 16:10
tech60318-Mar-09 16:10 
GeneralRe: create a nested table with javascript Pin
emilio_ts19-Mar-09 0:52
emilio_ts19-Mar-09 0:52 
AnswerRe: create a nested table with javascript Pin
Naruki23-Mar-09 20:20
Naruki23-Mar-09 20:20 
QuestionType Incompatible When Calling ActiveXObejct's Method in Web Page Pin
Xiaoming Qian12-Mar-09 17:20
Xiaoming Qian12-Mar-09 17:20 
QuestionObject cannot be extended in IE - Object does not support this property or method Pin
Jayapal Chandran11-Mar-09 22:22
Jayapal Chandran11-Mar-09 22:22 
QuestionAdd/Edit in ModalPopupExtender Pin
VikashGohil11-Mar-09 20:56
VikashGohil11-Mar-09 20:56 
AnswerRe: Add/Edit in ModalPopupExtender Pin
StianSandberg12-Mar-09 2:50
StianSandberg12-Mar-09 2:50 
Questionhtml source code Pin
patrice pilgrim11-Mar-09 9:48
patrice pilgrim11-Mar-09 9:48 
AnswerRe: html source code Pin
Ashfield12-Mar-09 2:38
Ashfield12-Mar-09 2:38 
AnswerRe: html source code Pin
Mohammad Dayyan13-Mar-09 3:53
Mohammad Dayyan13-Mar-09 3:53 
AnswerRe: html source code Pin
Marc Firth15-Mar-09 23:30
Marc Firth15-Mar-09 23:30 
Questionquestion Pin
mohprog11-Mar-09 6:42
mohprog11-Mar-09 6:42 
AnswerRe: question Pin
fly90411-Mar-09 11:43
fly90411-Mar-09 11:43 
GeneralRe: question Pin
Naruki23-Mar-09 20:21
Naruki23-Mar-09 20:21 
QuestionPadding in dropdown Pin
Brendan Vogt11-Mar-09 6:29
Brendan Vogt11-Mar-09 6:29 
AnswerRe: Padding in dropdown Pin
Marc Firth15-Mar-09 23:31
Marc Firth15-Mar-09 23:31 
GeneralRe: Padding in dropdown Pin
Brendan Vogt16-Mar-09 5:41
Brendan Vogt16-Mar-09 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.