Answer the question
In order to leave comments, you need to log in
How to make PJAX work in IE11/Edge?
Hello users. Noticed that Pjax (I use with yii2) doesn't work on MS Edge and IE11. In this case, updating information through the Pjax Widget does not occur and does not work correctly. Is there a real way to make it work?
Answer the question
In order to leave comments, you need to log in
Yesterday I checked, in the latest MS Edge in Windows 10 AU everything is already working.
I don't fully understand what exactly you need, but I'll venture a guess:
public function actionIndex()
{
if (Yii::$app->getRequest()->getIsPjax()) {
//return $this->redirect(['user/view','id'=>1]); // doesn't forword in IE.
$this->redirect(['user/view','id'=>1]); // forwards also in IE.
}
$searchModel = new UserSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
if (Yii::$app->getRequest()->getIsPjax()) {
return $this->redirect(['user/view','id'=>1], 200); // forwards also in IE.
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question