Skip to main content

Questions tagged [pjax]

pjax is a jQuery plugin that loads HTML from your server into the current page without a full reload. It's ajax with real permalinks, page titles, and a working back button that fully degrades.

0 votes
0 answers
26 views

How to update dropdown form field based on previous field value using Pjax in Yii2?

I'm trying to dynamically update a drop down Active form field based on the value of the previous field in Yii2 framework. The first field represents a project instance and the second field should ...
Abdelilah Dahdahi's user avatar
0 votes
0 answers
23 views

How to use filter item in pjax in laravel?

I use Laravel and code is: <div class="card-body"> @php($explodeFilter = []) @if(request()->get('filterItem') != null) @php($explodeFilter = explode(',', implode(...
mySun's user avatar
  • 1,642
2 votes
1 answer
59 views

does not handle class switching correctly yii2 Pjax

I have a form, when clicking on the icon the class should switch to enabled/disabled $options = [ 'enablePushState' => false, 'timeout' => 5000, 'options' => ['tag'=>'span', '...
Hector's user avatar
  • 46
0 votes
1 answer
45 views

disable and remove pjax functionality fom limesurvey

is it possible to remove pjax functionality from limesurvey? it caused a lot of problems for me, I just want the page load normally
s.mohammad abedi nejad's user avatar
0 votes
2 answers
164 views

How to cancel all other ajax requests?

I have a SPA website. When I send request A, I find I clicked wrong link. So I click and send request B before complete request A. So I want to abort request A and all other requests. I tried ...
NaweGa's user avatar
  • 13
0 votes
0 answers
102 views

( jQuery Pjax ) and WordPress

when using AJAX in WordPress, All the AJAX requests should be sent to wp-admin/admin-ajax.php file to process then this file will return the appropriate result I want to use PJAX with WordPress but I ...
osama B.'s user avatar
0 votes
0 answers
24 views

I can't binding event in a tag during implementing pjax

I was implementing pjax. However, the href attribute on the link tag still works. preventDefault() with addEventListener; I also tried to apply return false; as well. How can I prevent the href tag ...
NaweGa's user avatar
  • 13
0 votes
1 answer
245 views

Uncaught ReferenceError: Pjax is not defined at MutationObserver.<anonymous>

I have had to use some js code in order to make a plugin work correctly with my word press website that uses ajax to load pages. The code allows the search plugin to be used without reloading pages ...
Perry B's user avatar
0 votes
1 answer
298 views

Yii2 Pjax ListView With Custom ActiveForm Filters - Duplicate Url Params Issue

Key question is, does the \yii\widgets\ListView actually support filters with Pjax, like it's \yii\widgets\GridView counterpart? Here's what I have tried that has led to a duplicate url params issue: ...
ajmedway's user avatar
  • 1,492
0 votes
1 answer
105 views

PJAX doesn't load script modules

I'm trying to incorporate javascript modules into a site that uses PJAX, e.g.: <script type="module" src="index.js"></script> I'm finding that when I navigate to these ...
user3678429's user avatar
1 vote
0 answers
130 views

Re-rendering React on each PJAX load

I will preface this by noting that I am using an Eleventy-esque project called Slinkity that enables React component capabilities and uses ReactDOM in the browser. Simplified project repo Here Live ...
kukihi's user avatar
  • 23
0 votes
1 answer
104 views

Adding up two SUM() statements as a third value

I don't know if the title is descriptive enough, but I have the following query: SELECT SUM(col_1) AS 'value_1', SUM(col_2) AS 'value_2' WHERE ... In this query I would like to add up the ...
IneptusMechanicus's user avatar
0 votes
1 answer
35 views

Split pjax wiget in form part and result part

I'm using Yii2, activeForm and the Yii2 pjax widget to handle an search form with result list. But for layout reason, I have to split this package to two parts: the search form, which should be ...
The Bndr's user avatar
  • 13.4k
0 votes
1 answer
369 views

html video player doesn't load without a refresh

html5 player doesn't load without a refresh .. how to fix this? <!--IsvideoFileStart--> <link class="dplayer-css" rel="stylesheet" href="https://cdn.jsdelivr....
error 404's user avatar
-1 votes
1 answer
146 views

Not detecting $_SERVER['HTTP_X_PJAX'] on production (nginx php-fpm) server

Locally $_SERVER['HTTP_X_PJAX']; exists, but on production it does not exist. I detect if the request was pjax and add some special logic in the case it is true. $isPjax = isset($_SERVER['HTTP_X_PJAX']...
Brad's user avatar
  • 12.2k

15 30 50 per page
1
2 3 4 5
34