Skip to content

after data is retrieved the JS dies #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
drhenner opened this issue Jan 20, 2012 · 1 comment
Open

after data is retrieved the JS dies #11

drhenner opened this issue Jan 20, 2012 · 1 comment

Comments

@drhenner
Copy link

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.

@malixsys
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants