No error but no table created
No error but no table created
I'm following the examples except a couple of differences: using a local JS Array for data with mDataProp. It seems like all the examples only use AJAX with mDataProp.
[code]
var recs = [ { "name": "test"} ]
$(srvTblId).dataTable({
"bJQueryUI": true,
"aoColumns": [
{ "sTitle": "Name", "mDataProp": "name" }
],
"aaData": recs
});
[/code]
I stepped through the code and dataTable inits with my data but never goes into the constructor, ie the part that starts with return this.each ...
[code]
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Section - Constructor
*/
/* Want to be able to reference "this" inside the this.each function */
var _that = this; // breakpoint hit on this line
return this.each(function()
{
var i=0, iLen, j, jLen, k, kLen; // breakpoint NOT hit on this line
[/code]
No errors or logging went to the console so I'm stuck.
[code]
var recs = [ { "name": "test"} ]
$(srvTblId).dataTable({
"bJQueryUI": true,
"aoColumns": [
{ "sTitle": "Name", "mDataProp": "name" }
],
"aaData": recs
});
[/code]
I stepped through the code and dataTable inits with my data but never goes into the constructor, ie the part that starts with return this.each ...
[code]
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Section - Constructor
*/
/* Want to be able to reference "this" inside the this.each function */
var _that = this; // breakpoint hit on this line
return this.each(function()
{
var i=0, iLen, j, jLen, k, kLen; // breakpoint NOT hit on this line
[/code]
No errors or logging went to the console so I'm stuck.
This discussion has been closed.
Replies