lose value
lose value
Hi, i have a table with an button for adding a new entry. Im making a second table at the beginning, so with the document ready. Like that:
[code]
tblNewWineCategories = $("#tblNewWineCategories").dataTable( {
"bPaginate": true,
"bRetrieve": true,
"bFilter":true,
"bInfo": false,
"bJQueryUI": true,
"sAjaxSource": "files/scripts/cat2.php",
"aoColumnDefs": [{
"fnRender": function ( oObj )
return '';
},
"aTargets": [ 0 ]
},{
"bVisible": false,
"aTargets": [ 2 ]
}]
});[/code]
that works, that gives me an table with cat1,cat2,cat3 etc with the equal value. The div of that table is hidden, cuase its getting a UI Dialog.
So if you now press the add new button, i call the dialog to open. So now you have a layer with that generated table. if you now check the generated source, value is always = "". Why? I dont understand how the calling of a Dialog should have some influence in before generated code.
[code]
tblNewWineCategories = $("#tblNewWineCategories").dataTable( {
"bPaginate": true,
"bRetrieve": true,
"bFilter":true,
"bInfo": false,
"bJQueryUI": true,
"sAjaxSource": "files/scripts/cat2.php",
"aoColumnDefs": [{
"fnRender": function ( oObj )
return '';
},
"aTargets": [ 0 ]
},{
"bVisible": false,
"aTargets": [ 2 ]
}]
});[/code]
that works, that gives me an table with cat1,cat2,cat3 etc with the equal value. The div of that table is hidden, cuase its getting a UI Dialog.
So if you now press the add new button, i call the dialog to open. So now you have a layer with that generated table. if you now check the generated source, value is always = "". Why? I dont understand how the calling of a Dialog should have some influence in before generated code.
This discussion has been closed.