_fnCreateCookie error: oData is undefined

_fnCreateCookie error: oData is undefined

EricEric Posts: 24Questions: 0Answers: 0
edited February 2012 in General
I'm getting this error, "oData is undefined" in the _fnCreateCookie function. This has been happening intermittently for a while now, and I can't put my finger on what's causing it to occur. I've even upgraded to the latest versions of jquery, jquery ui, colvis, tabletools, and datatables.

The error occurs here:

[code]
if ( oData.iCreate && oData.iCreate < iOldTime )
{
sOldName = aSplitCookie[0];
iOldTime = oData.iCreate;
}[/code]

I have several tables on one page, and they are tabbed using jquery ui tabs.

Here's the init code for datatables:
[code]
$('table.itemsTable').each( function ()
{
var itemTypeName = $(this).attr("itemTypeName");

var colsToHide = new Array();
var count = 0;
$('thead tr > th[show|=false]', this).each(function () {
colsToHide[count] = $(this).index();
count++;
});

var itemDataTable;
itemDataTable = $(this).dataTable({
"bJQueryUI": true,
"bPaginate": false,
"bAutoWidth": false,
"bStateSave": true,
"bProcessing": true,
"aaSorting": [],
"sCookiePrefix": "manage_items_",
"iCookieDuration": 60*60*24*90, /* 90 days */
"oLanguage": {
"sProcessing": "Project Tracker: Working..."
},
"bRetrieve": true,
"sDom": '<"top"TCf><"clear">t<"clear">',
"oColVis": {
"aiExclude": [ colsToHide ],
"buttonText": "Hide/Show Columns",
"sAlign": "right"
},
"oTableTools": {
"sSwfPath": "../swf/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "csv",
"mColumns": "visible",
"sToolTip": "Save as CSV",
"sFieldBoundary": ""
},
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"mColumns": "visible",
"sToolTip": "Save as PDF",
"sPdfMessage": itemTypeName
},
{
"sExtends": "print",
"mColumns": "visible",
"sInfo": ""
}
]
},
"aoColumnDefs": [
{ "bVisible": false, "aTargets": colsToHide },/*,
{ "sType": "title-string", "aTargets": [ "string_sort" ] },*/
{ "sType": "natural", "aTargets": [ "Number_sort" ] },
{ "sType": "html", "aTargets": [ "links_sort" ] }
]
});
[/code]

Any ideas?

Replies

  • PiotrekPiotrek Posts: 3Questions: 0Answers: 0
    hi,

    did you manage to fix this error? because i'm having the same issue (oData is undefined in the same line of code)
This discussion has been closed.