'success' event not fired after manual pjax invoking. #131

Closed
opened 2018-02-27 02:04:48 -05:00 by venzersiz · 4 comments
venzersiz commented 2018-02-27 02:04:48 -05:00 (Migrated from github.com)

My code

var pjax = new Pjax({
selectors: ['#pjax-container'],
cacheBust: false
});

In this case events fired

  1. complete event fired
  2. success event fierd

But
pjax.options.requestOptions = pjax.options.requestOptions || {};
pjax.loadUrl(url, pjax.options);

In this case event fired

  1. complete event fired

Is this flow right?
or Did I made a mistake?

Thx.

**My code** var pjax = new Pjax({ selectors: ['#pjax-container'], cacheBust: false }); In this case events fired 1. complete event fired 2. success event fierd But pjax.options.requestOptions = pjax.options.requestOptions || {}; pjax.loadUrl(url, pjax.options); In this case event fired 1. complete event fired Is this flow right? or Did I made a mistake? Thx.
robinnorth commented 2018-02-28 11:10:59 -05:00 (Migrated from github.com)

Have you checked to see if pjax:error is being fired instead? Pjax always triggers either pjax:sucess or pjax:error when triggering pjax:complete.

Have you checked to see if `pjax:error` is being fired instead? Pjax always triggers either `pjax:sucess` or `pjax:error` when triggering `pjax:complete`.
BehindTheMath commented 2018-03-05 22:54:58 -05:00 (Migrated from github.com)

@venzersiz Are you still having this issue?

@venzersiz Are you still having this issue?
venzersiz commented 2018-03-06 00:49:13 -05:00 (Migrated from github.com)

@BehindTheMath I'll check again.

@BehindTheMath I'll check again.
venzersiz commented 2018-03-06 03:42:13 -05:00 (Migrated from github.com)

@BehindTheMath Oh, I made a mistake. The cause was jQuery pjax I've used has same name event handler. There isn't the problem.

@BehindTheMath Oh, I made a mistake. The cause was jQuery pjax I've used has same name event handler. There isn't the problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#131