Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jquery pagination not work after ajax load #33

Open
antonius99 opened this issue Jul 22, 2014 · 1 comment
Open

jquery pagination not work after ajax load #33

antonius99 opened this issue Jul 22, 2014 · 1 comment

Comments

@antonius99
Copy link

I have applied pagination with jPages plugin.
Pagination works fine for the first time along with search input. But when you change the filters on the right side, pagination has disappear.

any one can give solution.

in HEAD ||

<script> $(function() { $("div#lazy img").lazyload({ event : "scroll", effect : "fadeIn" }); ``` $("div.holder").jPages({ containerID : "itemContainer", animation : "fadeInUp", callback : function( pages, items ){ items.showing.find("img").trigger("turnPage"); items.oncoming.find("img").trigger("turnPage"); } }); ``` }); $.ajax({ url: 'your ajax page url', type: 'Either POST or GET', data: 'Data to be sent to ajax page', }) ## </script>

in body||

Show All Waiting Payment Confirmed Completed Cancel

// my ajax content call
//jpages MY DATA MY DATA

my js.php
function getData()
{
var filter = document.getElementById("filter").value;
var tfq = document.getElementById("tfq").value;
var variabel ='code_ax.php?filter='+filter+'&tfq='+tfq;
request.open('get',variabel);
request.onreadystatechange = parseGetData;
request.send('');
}

function parseGetData()
{
if (request.readyState == 4)
{
var answer = request.responseText;
document.getElementById("LISTDATA").innerHTML = answer;
}
}


code_ax.php

MY REQUEST DATA MY REQUEST DATA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@antonius99 and others