Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all 1816 articles
Browse latest View live

Column Width - too wide for fixed area

$
0
0
I've got three columns in my table and it works fine until I place links within the <td></td> tags. For some reason it adds extra space in the 3rd spot on the row. Same thing with images placed in there. Instead of all this extra space creating a new line it continues past the boundaries of my fixed width and makes the whole table width get longer and longer. What do I do to get the table to stop doing this? Here is my HTML.

<style type="text/css" title="currentStyle">
@import "/v/vspfiles/templates/stationary/css/DataTables_page.css";
@import "/v/vspfiles/templates/stationary/css/DataTables_table.css";
</style>
<script language="javascript" src="/v/vspfiles/jmenu/jquery.js" type="text/javascript"></script>
<script language="javascript" src="/v/vspfiles/jmenu/jquery.dataTables.js" type="text/javascript"></script>
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<script charset="utf-8" type="text/javascript">
(function($) {
/*
* Function: fnGetColumnData
* Purpose: Return an array of table values from a particular column.
* Returns: array string: 1d data array
* Inputs: object:oSettings - dataTable settings object. This is always the last argument past to the function
* int:iColumn - the id of the column to extract the data from
* bool:bUnique - optional - if set to false duplicated values are not filtered out
* bool:bFiltered - optional - if set to false all the table data is used (not only the filtered)
* bool:bIgnoreEmpty - optional - if set to false empty values are not filtered from the result array
* Author: Benedikt Forchhammer <b.forchhammer /AT\ mind2.de>
*/
$.fn.dataTableExt.oApi.fnGetColumnData = function ( oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty ) {
// check that we have a column id
if ( typeof iColumn == "undefined" ) return new Array();
// by default we only want unique data
if ( typeof bUnique == "undefined" ) bUnique = true;
// by default we do want to only look at filtered data
if ( typeof bFiltered == "undefined" ) bFiltered = true;
// by default we do not want to include empty values
if ( typeof bIgnoreEmpty == "undefined" ) bIgnoreEmpty = true;
// list of rows which we're going to loop through
var aiRows;
// use only filtered rows
if (bFiltered == true) aiRows = oSettings.aiDisplay;
// use all rows
else aiRows = oSettings.aiDisplayMaster; // all row numbers
// set up data array
var asResultData = new Array();
for (var i=0,c=aiRows.length; i<c; i++) {
iRow = aiRows[i];
var aData = this.fnGetData(iRow);
var sValue = aData[iColumn];
// ignore empty values?
if (bIgnoreEmpty == true && sValue.length == 0) continue;
// ignore unique values?
else if (bUnique == true && jQuery.inArray(sValue, asResultData) > -1) continue;
// else push the value onto the result data array
else asResultData.push(sValue);
}
return asResultData;
}}(jQuery));
function fnCreateSelect( aData )
{
var r='<select><option value=""></option>', i, iLen=aData.length;
for ( i=0 ; i<iLen ; i++ )
{
r += '<option value="'+aData[i]+'">'+aData[i]+'</option>';
}
return r+'</select>';
}
$(document).ready(function() {
/* Initialise the DataTable */
var oTable = $('#example').dataTable( {
"oLanguage": {
"sSearch": "Search all columns:"
}
} );
/* Add a select menu for each TH element in the table footer */
$("tfoot th").each( function ( i ) {
this.innerHTML = fnCreateSelect( oTable.fnGetColumnData(i) );
$('select', this).change( function () {
oTable.fnFilter( $(this).val(), i );
} );
} );
} );
$(document).ready(function () {
$("#companiesTable").dataTable({
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"bAutoWidth": false, // Disable the auto width calculation
"aoColumns": [
{ "sWidth": "30%" }, // 1st column width
{ "sWidth": "30%" }, // 2nd column width
{ "sWidth": "40%" } // 3rd column width and so on
]
});
});
</script>
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<!-- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -- ## -->
<div class="clear" style="height: 1200px;">
</div>
<div style="width: 1010px; height: auto; background: #4b3566; padding: 10px 15px; margin: 70px 0px 0px -255px; position: relative; z-index: 999;">
<h2 style="font-family: 'Helvetica', Arial, Sans-Serif; color: #fff; line-height: 0;">Instructions For Blind Repair</h2>
</div>
<div id="home-block">
<div id="dt_example">
<div id="container">
<div id="demo">
<a href="/v/vspfiles/video-remove-horizontal.html" rel="0" class="newWindowVideo">
</a>
<a href="/v/vspfiles/video-remove-horizontal.html" rel="0" class="newWindowVideo">
</a>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
<tr>
<th style="width: 300px;">
Title 1
</th>
<th style="width: 200px;">
Title 2
</th>
<th style="width: 400px;">
Title 3
</th>
</tr>
</thead>
<tbody>
<tr class="gradeA">
<td>
Category 1
</td>
<td>
Category 2
</td>
<td>
<a href="/v/vspfiles/video-remove-horizontal.html" rel="0" class="newWindowVideo">Category 3</a>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>
</th>
<th>
</th>
<th>
</th>
</tr>
</tfoot>
</table>
</div>
<div class="spacer">
</div>
</div>
</div>
</div>

Sort without accents

$
0
0
Hello There,

Im having problem sorting word that have accent. i found a post here that a guy named rbraga found a solution.
The solution was that the code snippet that he wrote remove all accent before sorting. but i can't understand how to use the code, in fact i thing the code is incomplete:

at jquery.dataTables.js

[code]
function removeAccents(strAccents){
strAccents = strAccents.split('');
strAccentsOut = new Array();
strAccentsLen = strAccents.length;
var accents = '

I would really love if someone could help me on this, please.


Ivan Lopes

fnStandingRedraw shows no records in datatable plugin

$
0
0
Here is the link of the sample datatable with pagination http://live.datatables.net/dufuyab/1/


I am using jQuery datatable plugin to display a list of records on my page. I am getting all my data from the server side and handling paganation from the server side as well. I wanted that whenever I referesh the table the page state should be maintained. I use the following plugin to achieve this

oTable.fnStandingRedraw();
This works fine except if i am on the final page of the table and i delete all records from that page and call the fnStandingRedraw() function it shows that the table is empty and when clicking on the previous page it shows all records again.

here is the code for the fnStandingRedraw plugin that i am using

$.fn.dataTableExt.oApi.fnStandingRedraw = function (oSettings) {
if (oSettings.oFeatures.bServerSide === false) {
var before = oSettings._iDisplayStart;

oSettings.oApi._fnReDraw(oSettings);

// iDisplayStart has been reset to zero - so lets change it back
oSettings._iDisplayStart = before;
oSettings.oApi._fnCalculateEnd(oSettings);
}

// draw the 'current' page
oSettings.oApi._fnDraw(oSettings);
};

nOrig null error

$
0
0
Hi ,

I am loading datatables. js on my page and creating a data table. First time its working fine. But when i again try to create a data table it is giving me error that nOrig is null at this code:

nOrig.insertBefore(oSettings.nTable, oSettings.nTableReinsertBefore);

line no. 5491 in jquery,datatable.js file.

please reply ASAP.

StateSave being fired immediately after page load

$
0
0
When using server side processing, a call to State Save fires twice during DT loading. Here is a screenshot.
http://i.imgur.com/lSOk28S.jpg

NOTE: I was unable to use the debug bookmark due to a mixed content warning in Firefox or IE 11.

Here is my DT definition:
	var oDTSettings = {
		//"aoColumns": aoColumns,
		"aoColumnDefs": aoColumnDefs,
		//"aaSorting": <?php echo $aaSorting; ?>,
		"sScrollX": "100%", // Required
		"sScrollY": "400px", // Setting to auto or 100% introduces column glitches
		"sPaginationType": "full_numbers",
        "sAjaxSource": '<?php echo MOD_URL.CLASS_NAME."/?event=filterAjax";?>',
		"sDom": '<"dt-header"l<"dt-breadcrumb">f>t<"dt-footer"i<"dt-selected">rp<"dt-textsize">>',

		"iDisplayLength": 100,
		"aLengthMenu": [50,100,250,500],
		
		"bAutoWidth": false,
		"bStateSave": true,
		"bDeferRender": true,
		"bProcessing": true,
        "bServerSide": true,
		"oLanguage": {
			"sSearch": "Search Within:",
			"sEmptyTable": "No matching Work Orders found",
			"sProcessing": "Loading..."
		},

		"fnCreatedRow": fnCreatedRow,
		//"fnRowCallback": fnRowCallback,
		"fnDrawCallback": fnDrawCallback,
		"fnPreDrawCallback": fnPreDrawCallback,
		"fnInitComplete": fnInitComplete,
		"fnCreatedCell": fnCreatedCell,
		"fnStateSave": fnStateSave,
		"fnStateLoad": fnStateLoad
	};
	
	<?php if (!$grouped){ ?>
	var oTable = jq('#work_orders').dataTable(oDTSettings);
	//console.log(oTable.fnSettings());
	
	<?php if ($freeze_icons_column){ ?>
	var oFixedOptions = {
		"fnRowCallback": '',
		"fnDrawCallback": fnPluginDrawCallback,
		"iLeftColumns": 0,
		"sHeightMatch": "none"
	}
	
	// If the last column is icons, apply the fixed column plugin
	if(window.aoColumnDefs[window.aoColumnDefs.length-1].mData == "icons"){		
		oFixedOptions.iRightColumns = 1;
	}
	
	// Don't render on IE8 or below
	if (!(jq.browser.msie && jq.browser.version <= '8')){
		//new FixedColumns( oTable, oFixedOptions);
		new jq.fn.dataTable.FixedColumns(oTable, oFixedOptions);
	}
	<?php } ?>
	
	<?php } ?>


And here is the state load/save callbacks:
function fnStateSave(oSettings, oData) {
	// Send an Ajax request to the server with the state object
	jq.ajax({
		"url": '<?php echo MOD_URL.CLASS_NAME."/?event=stateSave";?>',
		"data": oData,
		"dataType": "json",
		"method": "POST",
		"success": function () {}
	});
}

function fnStateLoad(oSettings) {
	var o;
	
	// Send an Ajax request to the server to get the data. Note that
	// this is a synchronous request.
	jq.ajax({
		"url": '<?php echo MOD_URL.CLASS_NAME."/?event=stateLoad";?>',
		"async": false,
		"dataType": "json",
		"success": function (json) {
		o = json;
		}
	});
	
	return o;
}

Issue with pagination

$
0
0
Hello,

I am having an issue with the pagination and have not seen anything similar in my search for an answer. Unfortunately, I cannot post the page to a live server as the data is currently unavailable in a public environment.

My initialization code is as follows:
var dataset = $('#MainTable').dataTable({
            "bPaginate": true,
            "sPaginationType": "full_numbers",
            "bJQueryUI": false,
            "bAutoWidth": false,
            "iDisplayLength": 5,
            "bServerSide": true,
            "sAjaxSource": '@Url.Content("~/Home/GetData")',
            "sServerMethod": "POST",
            "fnServerData": function (sSource, aoData, fnCallback) {
            $.ajax({
            type: "POST",
            url:sSource,
            data:aoData,
            dataType: "json"
            }).done(
            function (json) {
            fnCallback(json.d)
            }
            );
            },
            "oLanguage": {
            "sLengthMenu": 'Display <select>' +
            '<option value="5">5</option>' +
            '<option value="10">10</option>' +
            '<option value="15">15</option>' +
            '<option value="-1">All</option>' +
            '</select> records'
            },
            "aoColumns": [
            { "sTitle": "id" },
            { "sTitle": "account" },
            { "sTitle": "name" },
            { "sTitle": "c1" },
            { "sTitle": "c2"}
            ]
        });

my initial response from the server side is:
{"d":{"sEcho":1,"iTotalDisplayRecords":5,"iTotalRecords":17,"aaData":[[37,"Greedo11 sadf","Queens of the Stone Age","0","0","06/23/2013","07/06/2013"],[62,"","PatTest","0","0","12/04/2013","12/31/2013"],[64,"","PatTest","0","0","12/04/2013","12/31/2013"],[66,"Greedo11 sadf","Queens of the Stone Age","0","0","06/23/2013","07/06/2013"],[69,"Greedo11 sadf","asdfasdf","0","0","12/13/2013","02/05/2014"]]}}

When chainging the display x records dropdown the response grows as requested, and when searching the search returns as requested, however, the pagination always returns as if there is a single page and the buttons are classed as disabled. If i return all the records (rather than taking only the iDisplayStart - iDisplayLength) the page shows all the records and ignores the display dropdown.

Any help would be appreciated!

Thanks!
Justin

Loading new data into Data tables

$
0
0
I have a datatable with data loaded via AJAX

Like this:

$(document).ready(function() {
oTable = $('#snapshot').dataTable( {
'sScrollY': 500,
'bPaginate': false,
'bScrollCollapse': true,
'bJQueryUI': true,
'bStateSave': false,
"bFilter": true,
'bSort': true,
"bAutoWidth": false ,
"sAjaxSource": 'live_vision_data.php'
} );
} );

How do I reload the same ajax source file "live_vision_data.php" with one click?

Uncaught TypeError: Cannot read property 'aoData' of null

$
0
0
I am trying switch over to using server side instead of client side processing of data for datatables.

I have an index.php file with a div(#pagecontent) that I load my dynamic content(page) in. Currently I only have one page with a dataTable.

When I load the page with dataTable it works fine, but if I switch to a different page and then back I get this error:


Uncaught TypeError: Cannot read property 'aoData' of null jquery.dataTables.min.js:93
J jquery.dataTables.min.js:93
fa jquery.dataTables.min.js:27
fnGetPosition jquery.dataTables.min.js:106
ResponsiveDatatablesHelper.createExpandIcon datatables.responsive.js:390
task_Table.dataTable.fnRowCallback timecube.js:534
A jquery.dataTables.min.js:95
x jquery.dataTables.min.js:39
Fa jquery.dataTables.min.js:49
(anonymous function) jquery.dataTables.min.js:46
oSettings.jqXHR.$.ajax.success timecube.js:551
j jquery-2.1.0.min.js:2
k.fireWith jquery-2.1.0.min.js:2
x jquery-2.1.0.min.js:4
(anonymous function) jquery-2.1.0.min.js:4

Also the dataTable is stuck with processing and no rows.

I have tried out various methods of destroying the dataTable between page loads, but it doesn't seem to be a connection with that. I have also checked the json response from the server against jsonlint and it validates fine

I got this code from your debug bookmarklet: iseled
http://debug.datatables.net/iseled

Hopefully someone with experience with server side processing can point me in the right direction

Uncaught TypeError: Cannot read property 'style' of undefined while using colspan

$
0
0
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0 ,maximum-scale=1.0  ,minimum-scale=1 ,user-scalable=0" />
</head>
<body>
<div data-role="page" data-theme="b" id="S2"  data-overlay-theme="c">
     
    <div id="wrapper">
    <div id="scroller">
    <div id="spin" style="display:none;"></div>
 
    <div data-role="content">
     
    <table id="table_id">
    <thead>
        <tr>
            <th colspan="2">Engine</th>
            <th>Browser</th>
            <th>Platform</th>
            <th>Version</th>
            <th>Grade</th>
        </tr>
    </thead>
    <tbody>
        <tr>
          <td>Engine1</td>
 <td>sub - engine1</td>
            <td>Browser1</td>
            <td>Platform1</td>
            <td>Version1</td>
            <td>Grade1</td>
        </tr>
    </tbody>
</table>
    </div>   
    </div>
    </div>
     
</div>
</body>
</html>

after applying datatable plugin for the above table (colspan used table) it gives an error
Uncaught TypeError: Cannot read property 'style' of undefined in line no.3255 (line mentioned below)

 
nThs[i].style.width = o.aoColumns[iVis].sWidth;

I applied a validation line for that like

 
if(nThs[i] !== undefined)
   nThs[i].style.width = o.aoColumns[iVis].sWidth;

and it works fine!!!!

Is that ok Alan? If so please recommend it to others to use

the row is not deleted from datatable when i remove it from the dom

$
0
0
Hi i use datatables 9, and when i remove a row with $('tr[id="'+idProduit+'"]').remove(); because fnDeleteRow($('tr[id="'+idProduit+'"]')) doesn't work, and after removing i search this row in the search input the row is still there, why? i have tried this :

$('.suppBtn').on('click',function(){
var aPos = tblPrdt.fnGetPosition(this);
tblPrdt.fnDeleteRow(aPos); =>doesn't work
}

i have also tried this :
$('tr[id="'+idProduit+'"]').remove(); =>works but the row is already in the table when i search
tblPrdt.fnDeleteRow($('tr[id="'+idProduit+'"]')); he delete the first row all time
also : tblPrdt.fnDeleteRow($('tr[id="'+idProduit+'"]'),null,true); => same problem

help me please, because this is a great plugin, but i had a lot of problems because of this, and the temporary solution that i have is to reload the page but that touch the performance of the application.

Formatting table-header with json-data

$
0
0
Hi,

I'm working on a table that is created by DT based on JSON-data. In my old HTML-Version I had applied some CSS to the header-cells - how can I inject that formatting now when DT prepares the table for me?

Tx

Michael

[SOLVED] Different behaviour with FixedColumn on datatables vs my site

$
0
0
I'm trying to integrate FixedColumn to my table.
I've created my page with table already in it (no server side processing), added FixedColumn but I get weird behaviour.

I've recreated my issue using live.datatables: http://live.datatables.net/umuwij/3/edit

I want to create table with 2 left columns fixed (like here: http://datatables.net/release-datatables/extras/FixedColumns/two_columns.html)

On datatables site scrollbar isn't placed below first 2 columns, in my example it is below whole table.

1. How can this be fixed?
2. On my site I have dynamic number of columns, can I use "sWidth" to determinate "sScrollXInner"?
If I'll have 10 columns and everyone of them will have sWidth set to 100px then sScrollXInner should be 1000px, but if I'll have 30 columns it should be 3000px. I would like to avoid setting "sScrollXInner". Can this be done?

Server side info (Showing X to Y of Z entries) incorrect

nodeName is undefined in Drill Down

$
0
0
Hello,
I am having the error TypeError: mRow.nodeName is undefined when clicking on a row to expand the details. I cannot understand what is causing the error. Here is my data object from the list "history_data" passed into datatables.
   {
      "origin":"800275",
      "purchase_id":false,
      "move_lines":[
         2487
      ],
      "line_items":[
         {
            "origin":"800275",
            "create_date":"2014-03-07 15:15:28",
            "product_id":[
               54,
               "[67-00214] CAP WELDING SIZE 7 1/4"
            ],
            "product_uom":[
               17,
               "EA"
            ],
            "product_details":[
               {
                  "description":"CAP WELDING SIZE 7 1/4",
                  "categ_id":[
                     10,
                     "VMI / Welding"
                  ],
                  "default_code":"67-00214",
                  "seller_ids":[

                  ],
                  "vendor_part_number":"1000-7 1/4",
                  "id":54,
                  "name":"CAP WELDING SIZE 7 1/4"
               }
            ],
            "note":false,
            "location_dest_id":[
               29,
               "Berridge Input"
            ],
            "product_qty":2.0,
            "audit_fail":false,
            "id":2487
         }
      ],
      "state":"draft",
      "date":"2009-12-11 00:00:00",
      "partner_id":[
         9,
         "Neopart"
      ],
      "id":2556,
      "product_id":[
         54,
         "[67-00214] CAP WELDING SIZE 7 1/4"
      ]
   }

And here is my javascript:
$(document).ready(function(){
var anOpen = [];
var oTable = $('#contents').dataTable( {
"aaData": history_data,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/vmi/static/src/js/datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
},
"aoColumns":[
{
"mDataProp": null,
"sClass": "control center",
"sDefaultContent": '<img src="/vmi/static/src/img/details_open.png">'
},
{"mData": "date"},
{"mData": "origin"},
{"mData": "purchase_id"},
{"mData": "state"}
]
} );
$('#contents td.control').live( 'click', function () {
var nTr = this.parentNode;
var i = $.inArray( nTr, anOpen );
if ( i === -1 ) {
$('img', this).attr( 'src', "/vmi/static/src/img/details_close.png" );
var nDetailsRow = oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
$('div.innerDetails', nDetailsRow).slideDown();
anOpen.push( nTr );
}
else {
$('img', this).attr( 'src', "/vmi/static/src/img/details_open.png" );
$('div.innerDetails', $(nTr).next()[0]).slideUp( function () {
oTable.fnClose( nTr );
anOpen.splice( i, 1 );
} );
}
} );
function fnFormatDetails ( nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '<div class="innerDetails"><table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">';
sOut += '<tr><td>SEPTA P/N</td><td>'+aData.line_items[0].product_details[0].default_code+'</td></tr>';
sOut += '<tr><td>Quantity</td><td>'+aData.line_items[0].product_qty+'</td></tr>';
sOut += '<tr><td>U of M</td><td>'+aData.line_items[0].product_uom[1]+'</td></tr>';
sOut += '<tr><td>Discrepency</td><td>'+aData.line_items[0].audit_fail+'</td></tr>';
sOut += '<tr><td>Category</td><td>'+aData.line_items[0].product_details[0].categ_id[1]+'</td></tr>';
sOut += '<tr><td>Location</td><td>'+aData.line_items[0].location_dest_id[1]+'</td></tr>';
sOut += '<tr><td>Vendor P/N</td><td>'+aData.line_items[0].product_details[0].vendor_part_number+'</td></tr>';
sOut += '<tr><td>Description</td><td>'+aData.line_items[0].product_details[0].description+'</td></tr>';
sOut += '</table></div>';
return sOut;
}
}); 

Can you see what is causing this error?
Thanks in advance...

How to access values from fnServerParams

$
0
0
Hello I am using DataTables 1.9.4 and I would would like to access the values that have been passed in fnServerParams. The code is quite simple:

var oTable = $('#report-table').dataTable({
    "iDisplayLength": 300,
    "bProcessing": true,
    "bServerSide": true,
    "sAjaxSource": "/casings/index.json",
    "sDom": 'Rfrtip',
    "fnServerParams": function ( aoData ) {
        aoData.push({ "name": "customer_id", "value": $('#customer-id').val() });
        aoData.push({ "name": "shipped", "value": $('#shipped-status').val() });
    }
});

Unfortunately I don't know how to access the values passed into aoData in fnServerParams. I've tried the following to no avail as I don't see customer_id or shipped anywhere.

var settings = oTable.fnSettings();
console.log(settings);
console.log(oTable.oApi._fnAjaxParameters(oTable.dataTable().fnSettings()));

Does anyone know how to do this?

Alle Nike Dunk riesigen überlegen hält recht begrenzte

$
0
0
http://www.cheapnikefreerunaustralia-au.com It does not matter nike weather spork 1 Argentina Whichever everyone ordinarily order large associations apart from dispensing just about the most regarding what precisely in fact is industries, Nike has got traditionally is actually not which means that thriving utilizing to make sure that together with on occasion underpaid moreover Gánale. especially those with probable endorses agents that will Beaverton, or simply group, which regularly also reports that your run is pretty more effective street address is certainly unique worldwide, don't just interact with any chooses supply. Bambang Wirahyoso, different stabilize director within the united states own Philippines, reports the fact that $ 1 thousand is established thru 100 with January any coaches take this unification wherein going elsewhere without delay pay attention to numerous kinds utilizing considerable Philippines.
http://www.cheapnikefreerunaustralia-au.comDuring the 11 many weeks was initially nike shox together with created with November 25, Nike woul azines shut down assistance 3% that will to your couple of years eventually assistance $ 469, 000 given that it really is return shockingly improved XVIII % that will help $ 5 that will 73 thousand thousand " anytime your girlfriend precedent has grown to become, the longer command word (any joining) is normally designed to picture this address for virtually any consumers who have been be more responsive to demanded overtime not having moving, "he says. " People stress Nike Triax 16 mainly because tremendously mainly because is certainly. Shoes is certainly excellent obtain brightness however, possibly not a sufficient amount of available acceptable solidity not having high stiffness or simply unwanted weight coziness usually is a result of shock absorpting weather the nike air jordan xx8. is the reason innovative favorite introductions shoes high are fine in good shape a lot better own even your feet together with significant magniloquent have always been I want Triax easily every zoom capability. beatNike aren't able to men's.
http://www.cheapnikefreerunaustralia-au.com 2011 Nike earliest created nike shox 6 given product are usually will trigger help support together with shock absorpting opportunities expand results hoops boots or shoes imaginative. Alongside results pros, KOBE Bryant 6 product meant for sportsman aspect meant for encouragement, ability. input any potential predators gene layout sportsman over the high indoors, it is actually as a membrane for "skin " typically, simply because it should that will emulate chetah, any seriously terrific carcharias Carcharodon together with the ebony mamba snake imagine within the a couple of of them the fact that the effective use of possessing a silver screen despite the fact that performing films playacting Type of flooring is certainly mainly Involving old herringbone parquet the game of basketball together with stone dust stint stadium version utilizing limits. clutch system the game of basketball shirt or simply blasting locale stood selected locale, communicating into the Ad hoc with the opinion students are convinced sensation there!
Hatfield created a good firestorm among the athletic shoe coin enthusiasts across the sunday anytime she says self-lacing boots or shoes will hit the market during 2015.

Tijdens getoond gebruik het camión de Nike

$
0
0
http://www.nikestoreespanaoutletes.com Nike Creatieve opzichter Eric Avar schoeisel pagina- indeling nike discutir pereza thea personeel puerta del garaje geleid Kobe Bryant Tijdens het gebruik " Dendroaspis augusticeps " Tijdens getoond gebruik het camión de Nike Kobe Empuje el 50% de laars tenis dozijn . De Unieke polyurethaan imitatie reptiel nagelriem consistentie " bump Propriedades Micron , beschermd de hele om ght voorkomen verslechtering , werkelijk kunnen stimuleren de desgaste oppositie sitio Internet Listas camión uw ministerie Voorafgaand een aan conclusie buiten je alcanzó betrekking schoeisel tot bedrukt " Venomenon " ,
http://www.nikestoreespanaoutletes.comHet necesito de specifieke Donkere mamba para roshe nike acuerdo de venta de guión een werkelijkheid . Micron " Bryant dat deze Ebony es normalmente gemakkelijk De Meest mogelijke roofdieren para de wereld es normalmente" Avar vermeld : " dit kan zijn / Haar methode verwerven binnen elke matchen - nauwkeurige de Durante snelle gemaakt om Geschikt hetzelfde als Kobe Bryant gevraagd eigen ontwikkelaar ght Bouwen blootstelling aan uitstekende cumplido Durante Gezond . sommige schoenen graden Nike socket specifiek Je eigen gebruik camión Revolutionaire de doble capa schuim de la era espacial Lopen posities schoen cumplido
http://www.nikestoreespanaoutletes.comPreludio Nike Kobe 7 nike discutir pereza 3 puesto en uso el cubismo Estilo Bryant tomado para 2012 recogido todos los sus viejos relojes mediante inaudito materiales fama Mamba , Kobe Bryant para el reino unido haciendo uso de un fabuloso Básicamente no. 15 de la chaqueta , y la mayoría de otros tipos de información sobre todo el mensaje se ejecuta en el rango de un fabuloso arreglo variable y ,
http://www.nikestoreespanaoutletes.comIrrelevante de nike discutir pereza 1 Argentina Independientemente de lo que constantemente va a seleccionar las empresas más importantes , además, sirviendo algunos de los más conectados a las cosas es realmente fábricas , Nike viene con característica no ha sido por esa razón triunfante a través de con el fin de que , además, y con frecuencia mal pagados ,

Problem with two <tr> in header

$
0
0
Hi
My header is like this
<thead>
<tr>
<th colspan="2"></th>
<th colspan="4"></th>
</tr>
<tr>
<th rowspan="4" colspan="2"></th>
<th colspan="4">
</th>
</tr>
</thead>

I m using following
var oTable = $('#example').dataTable( {
"bProcessing": false,
"sAjaxSource": url,
"sAjaxDataProp": "abcd",
"bFilter": true,
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "un", "value": "Pan" } );
},"sServerMethod": "POST",

"aoColumns": [
{ "mData": getData },
{ "mData": getData},
{ "mData": getData},
null,null,
{ "mData": getData}
],
}) ;

i m very new to datatable, i m matching 6 columns in my <TH> to aoColumns. But i get error in my jquery.dataTables.js at 1831
aLayout[i+k][iColShifted+l] = {
"cell": nCell,
"unique": bUnique //at this line (error says cannot convert undefined to object)
};

Please advice how to map columns in the scenario of two <tr>.
thanks in advance
ak

Create links calling JS methods in a table cell (undefined method error)

$
0
0
Hello!

I'm struggling with (I hope) simple problem, but somehow can't sort it out. The scenario is the following: there is a form of creating new purchase order in the admin section of the site. At the beginning there is a button of client selection: it opens a jQueryUI Dialog with a simple search form, which makes an Ajax request and shows the results using the great DataTables. Each client can have more than one shipping address, so admin should be able to click the desired shipping address link, which calls a function selectClient() setting .val() of some hidden fields in a big form and closes the Dialog.

Here is a code snippet ( only the most important fragments, also I put an alert() only in selectClient() for a better clarity ):

<div id="search-user">
	<form id="search-user-form">
		<label for="q">Search phrase:</label>
		<input type="text" id="q" name="q" value="" /><input type="submit" value="Search" />
	</form>

	<div id="search-results"></div>
</div>

<script>
$(document).ready(function(){
	function selectClient(a){
		alert(a);
	}


	$("#search-user-form").submit(function(e){
		e.preventDefault();

		var q=$("#q").val();

		if(q.length > 0){
			$.ajax({
				url: "/service/search-users/",
				data: $("#search-user-form").serialize(),
				type: "GET",
				context: this,
				dataType: 'json'
			}).done(function(data) {

				// Service returns: {"DATA":[], "TOTALROWS":n}
				var totalRows=data.TOTALROWS;

				if(totalRows > 0){
					$("#search-results").html('<table cellpadding="0" cellspacing="0" border="0" id="sResults"></table>');
					
					var oTable = $('#sResults').dataTable( {
						"bJQueryUI": true,
						"aoColumns": [
							{ "sTitle": "Box" },
							{ "sTitle": "Name" },
							{ "sTitle": "Email" },
							{ "sTitle": "Company" },
							{ "sTitle": "Billing direction" },
							{ "sTitle": "Shipping directions" }
						]
					} );


					$.each(data.DATA, function(index, value){
						var tmpShipping='';
						$.each(value.shipping, function(i, v){
								// !!! Those links give a described error:
								tmpShipping+='<a href="#" onClick="selectClient(' + v.SHIPPINGID +')">' + v.SHIPPINGDESCRIPTIVENAME + '</a><br>';
						})

						$('#sResults').dataTable().fnAddData( [
							value.BOXNUMBER,
							value.billing.BILLINGNAME + ' ' + value.billing.BILLINGLASTNAME,
							value.USEREMAIL,
							value.billing.BILLINGCOMPANYNAME,
							value.billing.BILLINGADDRESS + ', ' + value.billing.BILLINGDISTRICT + '<br>' + value.billing.BILLINGCITY + ', ' + value.billing.BILLINGREGION,
							tmpShipping
						] );
					});
					
				}
				else{
					$("#search-results").html('Client not found');
				}

				oTable.fnAdjustColumnSizing();

			});
		}

		return false;
	});
});
</script>

Problem: created link in the
 tmpShipping 
variable, when clicked, gives an error "selectClient is not defined". I did a lot of search in the forums and of course Google, the only solutions i found were the ones creating a link to external resources, not JS methods. I'm using DataTables 1.9.4.

I'd greatly appreciate pointing me in the right direction.

Datatable with declared JSON array

$
0
0
Hi,

I tried the following example with a declared json data array. The datatable is rendered without the data and showed the following error message.

DataTables warning (table id = 'tableContacts'): Requested unknown parameter '0' from the data source for row 0.

The debugger information can be located at http://debug.datatables.net/urokux

var contactDT;
	
var tempJSON = {"contacts":[
	            {"lName":"Tester1", "fName":"Test", "midInit":"","title":"QUALITY/SALES","dept":"Sales","func":"President", "cPhone":"330-330-3300x330", "mobile":"330-330-3300", "fax":"330-330-3300", "pager":"", "email":"aaaaaaa", "webAddr":"www.google.com", "status":"A"},
	              {"lName":"Tester2", "fName":"Test", "midInit":"","title":"QA","dept":"Continuous Improved","func":"Technician", "cPhone":"330-330-3300", "mobile":"330-330-3300", "fax":"330-330-3300", "pager":"", "email":"bbbbbbbb", "webAddr":"www.google.com", "status":"A"}
	           ]};


contactDT = $("#tableContacts").dataTable({
	"bJQueryUI": true,
	"bAutoWidth": true,
	"bProcessing": true,
	"bRetrieve": true,
	"aaData": tempJSON["contacts"],
	"aaColumns":[
	           {"mData" : "lName"},
	           {"mData" : "fName"},
	           {"mData" : "midInit"},
	           {"mData" : "title"},
	           {"mData" : "dept"},
	           {"mData" : "func"},
	           {"mData" : "cPhone"},
	           {"mData" : "mobile"},
	           {"mData" : "fax"},
	           {"mData" : "pager"},
	           {"mData" : "email"},
	           {"mData" : "webAddr"},
	           {"mData" : "status"}
	]
});


Can anyone please tell me what is going wrong here?

Thanks,
Uresh
Viewing all 1816 articles
Browse latest View live