Answer the question
In order to leave comments, you need to log in
How do I use pjax to implement page clickability using jquery?
It turns out that if I reload the page, then everything exits normally, it goes to the view, But when you navigate the site using pjax, then in this case js does not work, it does not even receive a date-key
$(document).ready(function(){
$('.trTable').on('click', function(){
var key = $(this).data('key');
document.location.href = "http://crm/frontend/web/zakaz/view?id="+key;
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question