Turbo icon indicating copy to clipboard operation
Turbo copied to clipboard

how to use it?

Open thearabbit opened this issue 11 years ago • 6 comments

I am new with Turbo. How to use it? Please example for me. Thanks.

thearabbit avatar Jul 22 '14 09:07 thearabbit

The documentation does give an example at https://github.com/rcrowe/Turbo#pjax. You install the module and the javascript component. In the example "$(document).pjax('.js-pjax', 'body');", it's saying any link with css class "js-pjax" will be a turbolink request which will replace the contents of

.

ghost avatar Aug 03 '14 16:08 ghost

i am getting type error pjax is not a function

bhoopal10 avatar Oct 28 '14 13:10 bhoopal10

Did you install the Pjax js plugin also? Turbo only handles the backend to serve partials for the pjax plugin.

iamzozo avatar Oct 28 '14 13:10 iamzozo

how to install Pjax with composer

bhoopal10 avatar Oct 28 '14 13:10 bhoopal10

Pjax itself is a front-end jquery plugin, I think you can't install it with composer. You have to include as any other javascript file, like jquery or if you are using bower.

iamzozo avatar Oct 28 '14 14:10 iamzozo

okay :)

bhoopal10 avatar Oct 28 '14 14:10 bhoopal10

in front end Pjax is working perfectly but in server side it is not working. Means in controller if i print any string it is working but if i make view then it is loading full page

bhoopal10 avatar Oct 29 '14 10:10 bhoopal10