Answer the question
In order to leave comments, you need to log in
How to reload a specific pjax container?
I have a problem here. I put one container on the counter in the site template
$(document).ready(function () {
setInterval(function () {
$.pjax.reload({container: '#notification-count'});
}, 10000);
});
<?php Pjax::begin(['id' => 'financy-index-pjax']) ?>...<?php Pjax::end() ?>
Answer the question
In order to leave comments, you need to log in
указывайте formSelector для контейнеров, если его не задать, любая форма будет вызывать reload
https://www.yiiframework.com/doc/api/2.0/yii-widge...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question