How do I add a standard html element to a cell?

How do I add a standard html element to a cell?

AverageGuyAverageGuy Posts: 5Questions: 0Answers: 0
edited October 2010 in General
I'd like to build a table that has links embedded in the cell data for one column. The intent is to be able to display a table and have the user be able to click on a cell in a row and edit/view more details, etc. the data in that row. A clickable field would be OK also. I attempted to include a link in the json data, but it got stripped out somewhere along the way.

Thanks,
Jim.

Replies

  • handbuchhandbuch Posts: 55Questions: 0Answers: 0
    You can do that with: http://www.datatables.net/usage/columns

    I'm adding a Checkbox inthe first Row like that:

    [code]
    oTable = $("#drinks").dataTable( {
    "bPaginate": false,
    "bRetrieve": true,
    "sAjaxSource": "files/scripts/GetJSONDrinks.php",
    "aoColumnDefs": [{
    "fnRender": function ( oObj ) {
    return \'\';
    },
    "aTargets": [ 0 ]}]
    });
    [/code]

    But im a newbie so i dont know if that will help you. i got a Form tag around my table and then i can access the checked checkboxes via the .submit event.
  • AverageGuyAverageGuy Posts: 5Questions: 0Answers: 0
    Thanks, I'll check that out. Worst case I can use a checkbox also.

    Jim.
This discussion has been closed.