aoColumnDefs - Error: $.isArray is not a function
aoColumnDefs - Error: $.isArray is not a function
Hi,
I want to view only 3 columns from 12 columns and i am getting this error. Is there anything wrong I am doing ???
[code]
"aoColumnDefs": [{ "sName": "systemID", "bVisible": false },
{ "sName": "clientID", "bVisible": false },
{ "sName": "clientDesc", "bVisible": false },
{ "sName": "clientName" },
{ "sName": "intentID", "bVisible": false },
{ "sName": "vendorOutputLocationId", "bVisible": false },
{ "sName": "outputLocDesc" },
{ "sName": "vendorOutputLocationDir", "bVisible": false },
{ "sName": "systemName" },
{ "sName": "intentName", "bVisible": false },
{ "sName": "clientActive", "bVisible": false },
{ "sName": "intentActive", "bVisible": false }]
[/code]
and in the HTML i have only 3 rows defined.
I want to view only 3 columns from 12 columns and i am getting this error. Is there anything wrong I am doing ???
[code]
"aoColumnDefs": [{ "sName": "systemID", "bVisible": false },
{ "sName": "clientID", "bVisible": false },
{ "sName": "clientDesc", "bVisible": false },
{ "sName": "clientName" },
{ "sName": "intentID", "bVisible": false },
{ "sName": "vendorOutputLocationId", "bVisible": false },
{ "sName": "outputLocDesc" },
{ "sName": "vendorOutputLocationDir", "bVisible": false },
{ "sName": "systemName" },
{ "sName": "intentName", "bVisible": false },
{ "sName": "clientActive", "bVisible": false },
{ "sName": "intentActive", "bVisible": false }]
[/code]
and in the HTML i have only 3 rows defined.
This discussion has been closed.
Replies
Allan
[code]
HTML code:
systemName
clientName
outputLocDesc
systemID
clientID
clientDesc
intentID
vendorOutputLocationId
vendorOutputLocationDir
intentName
clientActive
intentActive
JQuery code:
"aoColumnDefs": [
{ "sTitle": "systemID", "bVisible": false, "aTargets":[3]},
{ "sTitle": "clientID", "bVisible": false , "aTargets":[4]},
{ "sTitle": "clientDesc", "bVisible": false, "aTargets":[5]},
{ "sTitle": "clientName" , "aTargets":[1]},
{ "sTitle": "intentID", "bVisible": false , "aTargets":[6]},
{ "sTitle": "vendorOutputLocationId", "bVisible": false , "aTargets":[7]},
{ "sTitle": "outputLocDesc" , "aTargets":[2]},
{ "sTitle": "vendorOutputLocationDir", "bVisible": false , "aTargets":[8]},
{ "sTitle": "systemName", "aTargets":[0]},
{ "sTitle": "intentName", "bVisible": false, "aTargets":[9]},
{ "sTitle": "clientActive", "bVisible": false, "aTargets":[10] },
{ "sTitle": "intentActive", "bVisible": false, "aTargets":[11] }],
[/code]
I have included these 2 javascript files ??
does it make any difference ?
Thanks
Allan
When i downloaded datatables i downloaded these 2 javascript files:
Firefox worked fine but not IE. IE did not like "jquery.js" , so i included the " jquery-1.2.0.js" and IE was fine with it and i continued working on it.
So now, everything works great in firefox for "jquery.js" or "jquery-1.6.0.js".
But nothing works in IE if i include any other java sctript files other than "jquery-1.2.0.js"
Allan
when i add localhost to my url, IE accepts it but not firefox.
Firefox accepts only ip address on itsurls.
So this has nothing to do with jquery files.Once i change the urls respectively depending on the browser, everything works fine.
I have still not found the solution for it yet. I know this is not a datatable issue, but if you have any idea about it, please let me know.
Thanks.