R
R
Rustam Akimov2018-02-03 15:02:20
Yii
Rustam Akimov, 2018-02-03 15:02:20

how to get status of ajax request in yii2?

I'm using pjax to make a terminal for queuing, how to get the response status of an ajax request to block buttons.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKyJIucT, 2018-02-03
@Inogami

$('#pjax_id').on('pjax:success', function(event, data, status, xhr, options) {
      // блочим кнопки
 });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question