mardi 27 mars 2018

Laravel 5.5 Pagination Link After Jquery Search

Before starting let me say I have seen many links on this and other forums related to my problem but I cant seem to work around. So my problem is I have a view page where on start records are loaded. Now I also have around 4 - 5 input fields to search and show results on the same page. I am using jquery for that. Now my problem is as on page load there are some default data that is populated along with the pagination link therefore when i search using jquery that pagination link remains there and it is not updated as per my returned results. Below I am giving the codes that I am Currently working with First the View Page VIEW PAGE CODE

Now the Controller Code for Populating on Page Load

ON PAGE LOAD THIS METHOD IS CALLED

The below is the Method called by jquery for Searching

Method FOR SEARCHING

Lastly below is Jquery

enter image description here

So as u can see I cannot in any way modify or update my pagination though the search functionality is working fine. Any Modifications to make the Pagination Work will be appreciated



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2pIJU0A
via IFTTT

Aucun commentaire:

Enregistrer un commentaire