How to page via querystring without reloading the page?

0

I make the list of products via a querystring as in the example: "{myite? pg = 1}"

I saw that on the website of the American and Walmart they make a page similar to mine, but without reloading the rest of the page.

How do I implement this on my site?

    
asked by anonymous 02.03.2017 / 19:17

2 answers

0

You will have to make a request via ajax to request for the web service only the necessary content and at run time plot the received data. Forms of implementation exist several and everything depends on the result you want.

Ajax with jquery: link

    
03.03.2017 / 18:18
-1

Friend, I'm not sure of the question. Your question is about the pagination method without reloading the page (in this case about the use of the ajax that your friend Yuri answered) or prevent the browser from reloading the page when changing the url parameter (when to change the mysite? P = 1 for mysite? p = 2)? If this is the case, I suggest using anchor "#" and javascript events (using Yuri's friend's ajax for content exchange). Searching for something simple for you I found: link Still, for a better understanding, search for javascript routes . It is used in SPA applications - Single Page Application

    
05.03.2017 / 18:17