Answer the question
In order to leave comments, you need to log in
How to replace output block with pjax?
Hello everyone, I can not understand why this expression does not work?
Yii::$app->response->getHeaders()->set('X-Pjax-Container', '#blockForLoadfunction');
Answer the question
In order to leave comments, you need to log in
I decided like this, on the page with the desired view I added the following code
$this->registerJs(
'
$("#timerId").on("pjax:end", function() {
$("#blockForLoadfunction").append( $("#modal-success_time_checker") );
});
'
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question