S
sicapitan
The appendChild to the row_container works a treat, while
column_container remainds blank, and it appears at the bottom of my
document
Hmm, here is my code :
function initGrid()
{
row_id = 1;
row1 = Builder.node('div',{id:''+row_id, className:'grid_start_row'});
row2 = Builder.node('div',{id:''+row_id,
className:'grid_row_inactive'});
strcol = "addColumn('col"+fieldcount+"');";
column = Builder.node('div',{id:'col'+fieldcount,
className:'grid_start_col'}, [
Builder.node('a', {href:'#', className:'hvr', onclick:''+strcol,
title:'Create a new column'},'add column'), [
Builder.node('input', {type:'text', id:'title'+fieldcount,
className:'colheader'}
)]
]);
$("row_container").appendChild( row1 );
$("row_container").appendChild( row2 );
$("column_container").appendChild( column );
}
my html:
<div id="row_container"></div>
<div id="column_container"><div>
is this because i'm creating a multiline builder node? the output is
fine, its just its not putting it in the div!
Any ideas?
column_container remainds blank, and it appears at the bottom of my
document
Hmm, here is my code :
function initGrid()
{
row_id = 1;
row1 = Builder.node('div',{id:''+row_id, className:'grid_start_row'});
row2 = Builder.node('div',{id:''+row_id,
className:'grid_row_inactive'});
strcol = "addColumn('col"+fieldcount+"');";
column = Builder.node('div',{id:'col'+fieldcount,
className:'grid_start_col'}, [
Builder.node('a', {href:'#', className:'hvr', onclick:''+strcol,
title:'Create a new column'},'add column'), [
Builder.node('input', {type:'text', id:'title'+fieldcount,
className:'colheader'}
)]
]);
$("row_container").appendChild( row1 );
$("row_container").appendChild( row2 );
$("column_container").appendChild( column );
}
my html:
<div id="row_container"></div>
<div id="column_container"><div>
is this because i'm creating a multiline builder node? the output is
fine, its just its not putting it in the div!
Any ideas?