I have an IFrame with a Table enclosed within it. I want to display 15 rows of a table and than a Next button must be there to move forward.
How to apply pagination for IFrame?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is essentially answered in Basic jQuery question: How to change iframe src by clicking a link?.
You would just need to build GET parameters for the frame source, and build links for each of the values in the main page.
For example:
The catch is that your main page will need to know the status of the frame to generate the right links — this will require some javascript parsing of the frame source URL and regenerating the links based on that.
Instead of using a frame, I would recommend loading the whole table inside the main page and using something like DataTables to generate the pagination for you.