Pagination links load only load once time - laravel-5

How load div only or data instead of load whole page while using pagination in laravel?
on every click pagination get data from database again. I want paginate pick data only at once and then proceed.
Any expert please!!!

I recommend using DataTables for that. But it will mostly depend on your project, preferences, knowledge...
https://datatables.net/

Related

Pagination in Codeigniter without page reload

Is there any way in codeigniter Pagination, such that when I click on next page in links my page should not get reload?
I am done with pagination But I am not able to solve this query.
Please Help.
Thank you
Short answer: No
Long answer: What you're asking is creating an AJAX pagination: The "not reloading page" effect is achieved when you use AJAX, that is, programming into the client side to call the server and only reload a part of the website.
That's said, if you wanted to get that, you should look for something like: Codeigniter jquery ajax pagination

Joomla component - how to convert standard php form into joomla component

Currently i have been using an iframe component to display a php page that i have written. the reason i used iframe rather than writing a joomla component in the first place was for 2 reasons, the information that is displayed in that page is from a remote mssql sever and the second was that i didnt really understand how to write one.
Now i have completed the creation of the php page that i display within the iframe, but now i need to be able to have it inherent within the joomla site, for both display reasons and security.
basically its a single page that displays information in a bunch of drop down boxes and then a submit button is clicked and it posts that information to another php page that again queries the mssql server and displays the results based on the post from the previous page.
query.php, posts some variables to results.php and is displayed in a table.
i have the functionality perfect, but i dont understand the documentation i have read so far. is there any simple component i can see the code of so that i can try and work out whats going on?
You might want to look at http://docs.joomla.org/J3.1:Developing_a_MVC_Component/Introduction and follow the process outlined.

Generate PDF from view using iTextSharp

My requirement is to have a button in my view and clicking on that should generate a PDF report from that view. (Should avoid making another trip to database to get data for the PDF report).
I decided to use iTextSharp. Could some body please post some examples or direct me to a proper article?
I answered something similar on this link.
You will need to sort out the caching of the data from the DB though, this version just queried it again.
How to make a pdf report of a particular view in mvc3

codeigniter pagination using ajax jquery

How to create pagination in codeigniter using Ajax? I know how to create simple pagination, but am struggling how to create this thing using ajax.
I happened to stumble on this great project which turns your pagination into Ajax without much coding to your PHP files.
If you don't mind "Scroll to load", you can try out http://www.fieg.nl/infinite-ajax-scroll-a-jquery-plugin
Even if you don't prefer scroll to load, it should give you some idea behind ajax pagination.

Back button with ajax and iframe

Here is a situation. We have a search feature which uses ajax so that search results can be updated when user changes one of the search filters. The search results page also has 3 ad units that are using iframes. We are using iframes so that when usees use pagination to go different pages or update search results using search filters, the ads can be refreshed.
Now the problem is if user uses pagination to go to different pages and then try to use browser back button, it does not work properly because when you change iframe source, browser add this in history
I would apprecaite any help on how to solve this issue.
You may want to consider loading ads dynamically (i.e. AJAX), instead of using iframes. So, you would simply use a <div> to display the ad (loaded with AJAX) instead of an <iframe>.
Mayby try location.replace("http://yourPage...") to replace the browsers last history entry after iFrame load?

Resources