Turbolinks prevents normal $(document).ready() events from firing on all page visits besides the initial load, as discussed here and here. None of the solutions in the linked answers work with Rails 5, though. How can I run code on each page visit...
I have a Javascript, which should work on $(document).ready but it won't, because I also have to use turbolinks.  Is there a way to disable it for this script? Or at least, is there a way to disable it for the view, I want my script to work on?...
I have the following:  $ ->     $('[data-provider="summernote"]').each ->       $(this).summernote         height: 300   And this works, however, I would like to make it TurboLinks 5 friendly.  So I tried the following:  $ ->...
in my Rails app I am loading Facebook plugin page, but because of turbolinks it doesnt load each page (only sometimes). I tried this script on this page , but now it never loads. What did I do?  I created facebook.coffee with this script:  $ ->...
I am integrating a front end html theme with a Laravel app and I am running into an issue with turbolinks not allowing Javascript to append div classes. This is causing the background images to only be displayed on refresh.   <div class="intro...
Javascript code like this  document.addEventListener("turbolinks:load", function() {   $("p#hide_if_js").hide(); });   is working fine with turbolinks when I click between pages or use the browser back button. However, when I refresh...
My JavaScript is being executed twice. When I run the Chrome debugger, I noticed that the individual JavaScript file will execute the code the first time, then after that, the application.js file will execute the code again.  I believe this is happen...
I have a ruby on rails 4 application that makes use of turbolinks and jquery ajax requests, and now I'm having some trouble.  The jquery ajax requests work perfectly under normal conditions. I have a remote form containing only a text field which...
I would like to use Turbolinks in my web application. However, i have some troubles with turbolinks and datatables.  Indeed, when i load my datatable for the first time, it generate the DOM for it and everythings is ok. But with turbolinks, the page...
How to know which part of the DOM has been replaced by Turbolink call?  Example flow:   On page load add event listener to few DOM nodes Click on some link (Turbolinks will replace part of the DOM) Remove event listeners from DOM nodes that are repla...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.