last day (15 days later) » 

7:26 AM
1
A: Avoid refreshing the page at pagination

Koala YeungYou'd probably want to use jQuery's .load() on the actual element that you cares instead of rewriting the whole HTML. Perhaps something like this: $('.pagination a').on('click', function (e) { e.preventDefault(); var url = $(this).attr('href'); $('#initiated').load(url + ' div#initia...

 
Hm, is partially working. Because now, my page didn't refreshing, but if I'm on page 2, and I select page 1, 3 or 4, is loading a blank page . Please check this and my updated code . imgur.com/a/N4CvqVq
 
Sorry. I don't quite understand the situation from your description. What do you mean by your "page didn't refreshing"? Also did you re-run the on click script after load?
 
Page didn't reloading, that's what I wanted to say, this is what I needed. What do you mean by re-run the on click script after load?
 
@Andrew: Updated my answer. Please check and try again.
 
Nope...same problem:( When I click on another page, it's reloading a new tab but with no content, like in these photos: imgur.com/a/N4CvqVq .
 
7:26 AM
So it doesn't work even on the first time you click it?
 
Hey, maybe we can talk here
so..I'm on the Initiated tab
first tab is my contacts, and the second is Invitation
in invitation i have received and initiated
in initiated is the paginator
and if I'm on the first page, and trying to press on the second page
 
Do you see any javascript error in the console?
 
it's loading a blank page without content on that
hm, let me check
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>
maybe this?
 
Are you using Chrome?
 
yes
 
7:38 AM
Updated my answer and see if it fix the problem for you.
I don't have any more spare time. Good luck.
 
ok thanks
 

last day (15 days later) »