Coder Social home page Coder Social logo

Comments (7)

elricstorm avatar elricstorm commented on June 30, 2024

The following fix : #77

.. fixed the pagination issue I was having.

However, the page still has to be refreshed after loading in order to show all the datatables components.

from jquery-datatables-rails.

elricstorm avatar elricstorm commented on June 30, 2024

The issue with the page having to be refreshed was due to Turbolinks. Turbolinks does not play nice with Rails 4 and DataTables. I'm looking into other avenues, maybe Pjax. I commented out the turbolinks gem and removed the require from my javascript. With Fix #77 and this fix, my datatables is now working fine.

from jquery-datatables-rails.

OscarBarrett avatar OscarBarrett commented on June 30, 2024

@elricstorm Turbolinks triggers page:load instead of ready, binding to that event as well as ready might fix your issue.

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on June 30, 2024

@elricstorm
It is working?
Can I close the issue?

from jquery-datatables-rails.

elricstorm avatar elricstorm commented on June 30, 2024

I do not use Turbolinks any longer so the issue is fixed for me. I do not know if Turbolinks still causes an issue with this gem.

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on June 30, 2024

@elricstorm I don't know too, because i do not use Turbolinks. I will close the issue, because i am trying to clean the repository issues.
If anyone got the same trouble, they can reopen.

Thanks.

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on June 30, 2024

@elricstorm if you are using Foundation, i proposed some changes to @cavalryjim at #83 Updating the datatables plugin files for Foundation 4 .
If you help too, i will appreciate.

Like:
Foundation 4: javascripts/foundation/4 and stylesheets/foundation/4
Foundation 5: javascripts/foundation/5 and stylesheets/foundation/5

Thank you very mutch

from jquery-datatables-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.