Gettin "/> pritned out if any fnredner target is 0
Gettin "/> pritned out if any fnredner target is 0
Hello Allan.
I may got a bug, i hope not but it looks like that.
So first, here is my JSON: http://pastebin.com/x36nQLdZ
Here is my HTML Stuff for the Table: http://pastebin.com/LG8kaJXg
Here is my Code: http://pastebin.com/uV0RdZ9T ---->> http://yfrog.com/0s28981526p
So it works perfectly rendering the checkbox. :) Everythign worked fine, then i wanted a column at the end with an symbol to edit, since i didnt know how to do a column which has no provided data by the json string (a column just for the edit icon) i just took the alcohol column.
So now, i got 2 frRenders. If the Target fo any of these is set to 0, i get "/> printed out next to the one which is NOT indexed with 0.
I may got a bug, i hope not but it looks like that.
So first, here is my JSON: http://pastebin.com/x36nQLdZ
Here is my HTML Stuff for the Table: http://pastebin.com/LG8kaJXg
Here is my Code: http://pastebin.com/uV0RdZ9T ---->> http://yfrog.com/0s28981526p
So it works perfectly rendering the checkbox. :) Everythign worked fine, then i wanted a column at the end with an symbol to edit, since i didnt know how to do a column which has no provided data by the json string (a column just for the edit icon) i just took the alcohol column.
So now, i got 2 frRenders. If the Target fo any of these is set to 0, i get "/> printed out next to the one which is NOT indexed with 0.
This discussion has been closed.
Replies
Or how can i call the ID Tag of the input which i rendered before? like, Obj.aData[0].ID or some html tag.
[code] tblDrinks = $("#tblDrinks").dataTable( {
"bPaginate": false,
"bRetrieve": true,
"sAjaxSource": "files/scripts/GetJSON_Drinks.php",
"aoColumnDefs": [{
"fnRender": function ( oObj ) {
return '';
},
"aTargets": [ 0 ]
},{
"fnRender": function ( oObj ) {
return '';
},
"aTargets": [ 10 ]
}]
});[/code]
Allan