farizluqman / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Uncaught TypeError: Cannot set property 'jqXHR' of undefined (Server side mode) #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When I write in a text column filter, in server-side mode, I get the error. 
It seems like the the passing of three parameters to the fnServerData function 
is the problem. I think it has four parameters now?
2.
3.

What is the expected output? What do you see instead?
I expect that the data is filtered, but nothing happends

What version of the product are you using? On what operating system?
I am using the 1.8.1 version of datatables and the 1.2.1 of columnfilter

Please provide any additional information below.

Original issue reported on code.google.com by javier.i...@gmail.com on 1 Aug 2011 at 8:08

GoogleCodeExporter commented 9 years ago
I get this error as well but filtering works anyway. The broken filtering may 
have something to do with one of the other server side mode bugs. If you check 
Issue 9 and Issue 26, they may contain help for other server side mode bugs 

Original comment by g.duerrm...@gmail.com on 1 Aug 2011 at 9:23

GoogleCodeExporter commented 9 years ago
i get the same issue too, also using Datatables 1.8.1 and Column Filters 1.2.1, 
also working in ServerSide mode. The filtering still works, but with the 
described error each time. 

Everything worked perfectly using DT 1.7.6 and CF 0.9, returning data in an 
array-of-arrays from the Ajax Handler (as oppose to an array of *objects*). 

Original comment by lloyd.br...@gmail.com on 15 Aug 2011 at 12:20

GoogleCodeExporter commented 9 years ago
This error is caused by a change in DataTables 1.8+ due to the addition of an 
extra parameter to fnServerData in 1.8. The jQyery XHR object is also passed to 
the callback function, so it can access whatever properties and extra 
information might be available through the returned JSON.

To fix, the fnServerData override needs to pass the jqXHR parameter around as 
the fourth parameter.

Original comment by allan.ja...@gmail.com on 28 Aug 2011 at 7:25

GoogleCodeExporter commented 9 years ago
Hi,

According the the DT documentation 
http://datatables.net/usage/callbacks#fnServerData
fnServerData has three argumeths. In the Issue 18 
http://code.google.com/p/jquery-datatables-column-filter/issues/detail?id=18 is 
reported the same problem and fix was to add the settigns in the line:

fnServerDataOriginal(sSource, aoData, fnCallback, oTable.fnSettings()); //TODO: 
See Issue 18

I have added this line but in both cases I cannot reproduce the problem. Could 
you take the latest version and let me know if this resolved your problem?

Please reopen the issue if you see this error again with the latest version.

Thanks,
Jovan

Original comment by joc...@gmail.com on 25 Sep 2011 at 6:58