Front-End Pagination With JavaScript
Вставка
- Опубліковано 10 вер 2024
- In this video we will be using Javascript to perform frontend pagination on a table of data that we rendered out using Javascript and JSON data.
We will start by creating some basic pagination first, then we'll add a rolling window affect to handle larger sets of data.
Follow me on Twitter: / dennisivy11
Linkedin: / dennis-ivanov
Source code + jsfiddle.net/i...
Works accurately and plus point is you have demonstrated modern pagination style.
Thank you so much! Had a horrible time figuring out how to paginate a large amount of data for a school project, this really helped a lot!
It's really usefull. Only video that teach advanced pagination
Nice tutorial, but I still have doubts. While this implementation is working as expected in the frontend, the backend is still sending out large data. For example, if a user sends a request, it fetches 20,000 data. The user retrieves all these data, then the JavaScript performs its operation in the user end as shown in this video. Isn't it still defeats the purpose of pagination? Since the server side is still sending out large data (which can also lead to DDoS and higher memory consumption). Please correct me if I'm wrong.
Should be labeled "Front-End Pagination with jQuery" instead of "with JavaScript"
Thank you very much! A very simple but still complex solution!
I appreciate your help man. Thank you!
How should I change the javascript to show the active button?
this video really helped me a lot. Thanks
thank you so much, this just saves my day
thanks! really easy to understand and really usefull!!!
Can you give coded lines as jQuery into javascript syntax.
I need the jquery syntax into Vanilla javascript can anyone provide it.
Thanks so much! I love it
you bet me to it by 4 weeks.
Thank you very much for this video.
a tip: you can watch series on Flixzone. I've been using it for watching lots of of movies these days.
@Ernest Zavier yup, been watching on Flixzone for years myself :D
Awesome work thanks! love it.
Amazing tutorial and an amazing coder, but I just wished if you started this from scratch so we can follow up
how to add searching with this pagination...please help
Yess, dennis there is a video of yours in which you explained searching and here pagination.
If you could create a video to do both together.
Need to implement asap.
And thanks your videos helps a lot.
I need to make a project which gets data by searching via github api and then paginates those data.
This is amazing! Thank You :)
Thanks.
Can u tell me how i can set the current page with the active status highlight.
if you want set the current page you can try this in the pageButtons function
if (state.page == page) {
wrapper.append(`
${page}`);
} else {
wrapper.append(`${page}`);
}
@@joux1992 I tried my end, am not able to succeed, can you share your code. Thanks in advance
@@AntonyAllocious you need to put that IF where you create the buttons instead of what he had in the video, like this:
for(var page = maxLeft; page
can anybody please tell me if that jquery bit can be written in javascript? i m stuck with the onclick function
i too want that did u get the current value of page i.e this.val() into javascript
thanks for video !! i love it
Thanks
Excellent job!
THANK YOU!
thx for all♥
Topic: Full stack javascript - Data Pagination and Filtering
Good day,
If I may humbly ask a little help, any hints, comments and suggestions are very much welcome, thank you in advance for all your help, please see question below, how do I code this?:
/*
Create the `showPage` function
This function will create and insert/append the elements needed to display a "page" of nine students
*/
/*
Create the `addPagination` function
This function will create and insert/append the elements needed for the pagination buttons
*/
// Call functions
thanks for the video.
My pleasure, thank you for watching :)
Thankyou Very Much !!
Can I use API with this?
awesome dude!!
thank you very much
Thanks a ton!
THANKSSS BROOO, A LOT
Ivy could you please make another using just the arrow icons. Thanks
I purposely didn't use arrow functions because I know a lot of people watching this still use the old JavaScript functions but I could do that. How about I re-write the code with arrow functions and attach it as another git repository. Would that help you?
@@DennisIvy Sure, it'd definitely help. Thanks
Thanks for video
how to do active page button?
I dont understand the code
THANKS THANKS THANKS THANKS!!!!!!!!!
youre welcome bro
Do it with django api instead json variable.
{2021-09-07}
Thanks
My pleasure :)