Need Assistance - jQuery / Datatables / JEditable - Record Details being Editable

Need Assistance - jQuery / Datatables / JEditable - Record Details being Editable

I'm a bit new to all of these libraries so please bear with me - let me try to explain:

I have Datatables working fine, I'm employing the hide/show technique for record details, and I'm applying jEditable but I'm running into a snag when I try to get the record details to be 'editable'.  Main record info becomes editable upon click with no problem.

I thought with just adding the same class name to the inner table td elements would do it - nope.  Anyone have any insight on what I may be doing wrong or need to do?

--HTML file containing the table --
  1. <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablecb" id="dyntable2">
  2. <thead>
  3.         <tr>
  4.                 <th class="head0" width="3%"></th>
  5. <th class="head0" width="10%">Name</th>
  6.                         <th class="head0" width="10%">Role</th>
  7. <th class="head0" width="20%">Email</th>
  8. <th class="head0" width="15%">Username(s)</th>
  9. <th class="head0" width="15%">Post</th>
  10. <th class="head0" width="10%">Action</th>
  11. </tr>
  12. </thead>
  13.         <tbody>
  14.         <tr>
  15.                 <td colspan="6">.... loading data ....</td>
  16. </tr>
  17. </tbody>
  18.         <tfoot>
  19.         <tr>
  20.                 <th class="head0"></th>
  21. <th class="head0">Name</th>
  22.                <th class="head0">Role</th>
  23. <th class="head0">Email</th>
  24. <th class="head0">Username(s)</th>
  25. <th class="head0">Post</th>
  26. <th class="head0">Action</th>
  27. </tr>
  28. </tfoot>
  29. </table>

-- And the contents of the js file --
  1. var oTable, urlStatus = 'active';
  2.  
  3. /* Function that formats for row details */
  4. function fnFormatDetails ( nTr ) 
  5. {     
  6. var aData = oTable.fnGetData( nTr );     
  7. var sOut = '<table width="100%" cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">';     
  8. sOut += '<tr class="hightlighted,edit">';
  9. sOut += '<td width="15%" align="right"><b>Address:</b></td>';
  10. sOut += '<td width="35%" align="left" class="edit">'+aData[6]+'</td>';
  11. sOut += '<td width="15%" align="right"><b>Username:</b></td>';
  12. sOut += '<td align="left" class="edit">'+aData[9]+'</td>';
  13. sOut += '</tr>';     
  14. sOut += '<tr class="hightlighted,edit">';
  15. sOut += '<td align="right"><b>Phone Number:</b></td>';
  16. sOut += '<td align="left" class="edit">'+aData[7]+'</td>';
  17. sOut += '<td align="right"><b>OpenNet Username:</b></td>';
  18. sOut += '<td align="left" class="edit">'+aData[10]+'</td>';
  19. sOut += '</tr>';     
  20. sOut += '<tr class="hightlighted">';
  21. sOut += '<td align="right"><b>Cell Number:</b></td>';
  22. sOut += '<td align="left" class="edit">'+aData[8]+'</td>';
  23. sOut += '<td align="right"><b>Inventory Last Signed:</b></td>';
  24. sOut += '<td align="left" class="edit">'+aData[11]+'</td>';
  25. sOut += '</tr>';     
  26. sOut += '<tr class="hightlighted">';
  27. sOut += '<td align="right">&nbsp;</td>';
  28. sOut += '<td align="left" class="edit">&nbsp;</td>';
  29. sOut += '<td align="right"><b>Last Accessed:</b></td>';
  30. sOut += '<td align="left" class="edit">'+aData[12]+'</td>';
  31. sOut += '</tr>';     
  32. sOut += '</table>'; 
  33.    return sOut; 
  34. /* setup URL status param switch for dataTables param */
  35. if (document.URL.indexOf('all') > 0){
  36. urlStatus = 'all';
  37. }
  38. else if (document.URL.indexOf('inactive') > 0){
  39. urlStatus = 'inactive';
  40. }
  41. else {
  42. urlStatus = 'active';
  43. }
  44. /* Prep jQuery and DataTables */
  45. $(document).ready(function(){
  46. oTable = $('#dyntable2').dataTable({
  47. "sAjaxSource": "../../com/users.cfc?method=getJsonUsers&status="+urlStatus,
  48. "sAjaxDataProp": "DATA",
  49. "sPaginationType": "full_numbers",
  50. /* Apply the jEditable handlers to the table */
  51. "fnDrawCallback": function () {
  52. $('.edit').editable( '../examples_support/editable_ajax.php', {
  53. "callback": function( sValue, y ) {
  54. /* Redraw the table from the new data on the server */
  55. oTable.fnDraw();
  56. },
  57. "height": "14px"
  58. } );
  59. },
  60. /* Here we define for all rows;
  61. * For column 1 (aTargets array 0) that it is going to have an image for hide/show
  62. * for  column 7 ( aTargets array 6) that it is going to display images for action
  63. */
  64. "aoColumnDefs":[
  65. {
  66. "sClass": "center", 
  67. "bSortable": false,
  68. "mRender": function(data,type,row) {
  69. return data
  70. +'<img title="Show additional User Information" src="../../images/datatables/details_open.png">';
  71. },
  72. "aTargets": [0]
  73. },
  74. {
  75. "sClass": "center",
  76. "bSortable": false,
  77. "mRender": function(data,type,row){
  78. return data
  79. + '<img title="Edit User Information for: '
  80. + row[1]
  81. +'" src="../../images/edit.gif">&nbsp;&nbsp;<img title="Delete User Information for: '
  82. + row[1]
  83. +'" src="../../images/del.gif">';
  84. },
  85. "aTargets": [6]
  86. }
  87. ]
  88. /* Here we define individual column definitions (1st column we are defining the hide/show information) */

  89.   ,
  90. "aoColumns":[
  91. null,
  92. {"sClass": "edit"},
  93. {"sClass": "edit"},
  94. {"sClass": "edit"},
  95. {"sClass": "edit"},
  96. {"sClass": "edit"},
  97. null
  98. ]
  99.   });


  100. /* Function to change between 'hide' and 'show' */  
  101. $('#dyntable2 tbody td img').live('click', function() {
  102. var nTr = $(this).parents('tr')[0];
  103. if (oTable.fnIsOpen(nTr))
  104. {
  105. /* If statement necessary to avoid applying open/close function to last 'action' column of images */
  106. if (this.src.indexOf("close") > 0) {
  107. /* This row is already open - close it */
  108. this.src = "../../images/datatables/details_open.png";
  109. this.title = "Show additional User Information";
  110. oTable.fnClose(nTr);
  111. }
  112. }
  113. else
  114. {
  115. /* If statement necessary to avoid applying open/close function to last 'action' column of images */
  116. if (this.src.indexOf("open") > 0) {
  117. /* Open this row */
  118. this.src = "../../images/datatables/details_close.png";
  119. this.title = "Hide additional User Information";
  120. oTable.fnOpen(nTr, fnFormatDetails(nTr), '');
  121. }
  122. }
  123. });
  124. });

Thanks in advance for any help on this as I can't seem to find anything on the net right now.