simple_datatables icon indicating copy to clipboard operation
simple_datatables copied to clipboard

after data is retrieved the JS dies

Open drhenner opened this issue 13 years ago • 1 comments

This was my error.

Uncaught TypeError: Cannot read property 'length' of undefined Aajquery.dataTables.min.js:69 i.fn.dataTable.a.iDrawjquery.dataTables.min.js:68 jQuery.Callbacks.firejquery-1.7.1.js:1047 jQuery.Callbacks.self.fireWithjquery-1.7.1.js:1165 donejquery-1.7.1.js:7400 jQuery.ajaxTransport.send.callbackjquery-1.7.1.js:8181

You really should not use the minified JS. I would have debugged the issue but I'm unsure if I am going down a hole to never return.

drhenner avatar Jan 20 '12 22:01 drhenner

Check you layout value, it expects 'application'

      respond_with @elements, :layout => 'application'

if your /races/search.datatables? request does not reply with a json with s:Echo:1 in it, this might be your case...

malixsys avatar Jan 25 '12 14:01 malixsys