Ajax implementation of non-refresh paging example code

韦小宝
Release: 2018-01-01 18:18:17
Original
996 people have browsed it

This article mainly introduces the Ajax implementation of non-refresh paging example code. It is very good and has reference value. Friends who are interested in ajax can refer to the article Ajax implementation of non-refresh paging example code.

implementation Ajax paging:

Add query conditions if possible

  1. Find a table for paging

  2. Do not use page for paging Class

  3. The page does not need to be refreshed

  4. Ajax loading data


##

    Document   
  

代号 名称 父级代号

Copy after login


The above is this page: test.php


JSONQuery($sql);
Copy after login


The above is the processing page: chuli.php:


StrQuery($sql); echo ceil($zts/$num);
Copy after login


The above is the paging page: fenye.php

The following is our display effect:

#As you click on the next page, 5 pages will be displayed below, and there are two pages on the left and right of the current page. The number of information displayed on each page can be adjusted by yourself.

Enter keywords in the text box above to display relevant information. This is the paging we do using ajax.

The above is the example code of Ajax implementation without refresh paging introduced by the editor. I hope it will be helpful to everyone! !

Related recommendations:

Detailed explanation of data parameter type examples of jQuery.Ajax()

How to use jquery's ajax to asynchronously submit form data

ajax to automatically complete form fields example

The above is the detailed content of Ajax implementation of non-refresh paging example code. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!