I have an html table with rows and a jQuery handler on click.
The click event calls window.location.href
which causes a full page refresh.
Can I somehow manually call turbolinks to fetch the page? Should I use PJAX instead?
Thanks
I have an html table with rows and a jQuery handler on click.
The click event calls window.location.href
which causes a full page refresh.
Can I somehow manually call turbolinks to fetch the page? Should I use PJAX instead?
Thanks
From the Turbolinks Readme:
You can use Turbolinks.visit(path) to go to a URL through Turbolinks.
© 2022 - 2024 — McMap. All rights reserved.