$("#tbl").dataTable({
"aaSorting" : [[0, 'desc']],
"bStateSave" : true,
"aoColumns" : [null, null, null, null, null, { "bSearchable": true, "bVisible": false }],
});
$("#tbl").dataTable({
"aaSorting" : [[0, 'desc']],
"bStateSave" : true,
"aoColumns" : [null, null, null, null,{ "bSearchable": true, "bVisible": false }, null],
});
else
{
nTh.parentNode.removeChild( nTh );
iCorrector++;
}
iCorrector is going out of bounds of the tables' columns -- though I could be wrong.
<table width="100%" cellspacing="0" border="0" id="invoice">
<thead>
<tr>
<th>Date</th>
<th>Site</th>
<th>Length</th>
<th>Total</th>
<th>Paid</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tooltip" title="September 1st, 2010">M/D/Y</td>
<td class="tooltip" title="Description Here">http://somesite.com/</td>
<td class="tooltip" title="Description Here">1.25</td>
<td class="tooltip" title="Hourly rate * Set rate = total">$35.00</td>
<td class="tooltip" title="Item Invoice Paid">0</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
$("#invoice").dataTable({
"aaSorting" : [[0, 'desc']],
"bStateSave" : false,
"aoColumns" : [
/* Date */ null,
/* Site */ null,
/* Len */ null,
/* Amt */ null,
/* Paid */ null
],
});
});
</script>
/**
*
* simpleTooltip jQuery plugin, by Marius ILIE
* visit http://dev.mariusilie.net for details
*
**/
(function($){ $.fn.simpletooltip = function(){
return this.each(function() {
var text = $(this).attr("title");
$(this).attr("title", "");
if(text != undefined) {
$(this).hover(function(e){
var tipX = e.pageX + 12;
var tipY = e.pageY + 12;
$(this).attr("title", "");
$("body").append("<div id='simpleTooltip' style='position: absolute; z-index: 100; display: none;'>" + text + "</div>");
if($.browser.msie) var tipWidth = $("#simpleTooltip").outerWidth(true)
else var tipWidth = $("#simpleTooltip").width()
$("#simpleTooltip").width(tipWidth);
$("#simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
}, function(){
$("#simpleTooltip").remove();
$(this).attr("title", text);
});
$(this).mousemove(function(e){
var tipX = e.pageX + 12;
var tipY = e.pageY + 12;
var tipWidth = $("#simpleTooltip").outerWidth(true);
var tipHeight = $("#simpleTooltip").outerHeight(true);
if(tipX + tipWidth > $(window).scrollLeft() + $(window).width()) tipX = e.pageX - tipWidth;
if($(window).height()+$(window).scrollTop() < tipY + tipHeight) tipY = e.pageY - tipHeight;
$("#simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium");
});
}
});
}})(jQuery);
<td class="tooltip" title="&bull; Website/page skeleton implementation and<br />&nbsp;&nbsp;&nbsp;integration<br />&bull; Contact form backend<br />&bull; Added content from static to database/removed<br />&nbsp;&nbsp;&nbsp;static contents<br />">some snazzy text here</td>(EDIT: Just realized that your site is parsing htmlentities, so just assume that & is actually "& amp ;", etc)
"aoColumns": [
{ "sClass": "center", "bSortable": false },
null,
null,
null,
{ "sClass": "center" },
{ "sClass": "center" },
{ "sClass": "center", "bSortable": false, "bVisible": false}
],
else
{
//nTh.parentNode.removeChild( nTh );
iCorrector++;
}
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.