Jquery Data table pagination not working ?

Hi Experts ,

We have used Jquery data table . Previously its working fine . But now Pagination has stopped working and no error on console and other things are working fine . Please see the attached screenshot . And i have checked the Table structure and placed the same table in another page is working . Any guess on this Experts


Thanks in Advance
karthik80cAsked:
Who is Participating?
 
Julian HansenConnect With a Mentor Commented:
Then I don't understand because from the browser perspective it is static. The browser has no way of knowing if content was generated by a script or a static page. When it arrives in the browser it is a static page irrespective of origin.

If you say the same html works in a static page then you need to compare the difference between that page and the generated html (view page source) on the broken page.
1
 
Julian HansenCommented:
No screenshot - no code - no link.

Strong are we with the force ... but not that strong.
0
 
karthik80cAuthor Commented:
oh sorry buddy . Please see the screenshot and below is the code for jquery table we have added


$(document).ready(function () {
            
            var item = document.getElementById('view');

            if (item != "undefined") {
                oTable = $('#view').DataTable({
                    'aoColumnDefs': [{
                        'bSortable': false,
                        'aTargets': [1] /* 1st one, start by the right */
                    }]
                });
            }
            
          

        });

Open in new window

Capture.PNG
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Julian HansenCommented:
What is the problem - the table seems to render correctly - or are you unable to click through to other pages?
0
 
karthik80cAuthor Commented:
Hi Julian

 table renders correctly . but the pagination not working and no errors on console
0
 
Julian HansenCommented:
When you say pagination is not working
a) Do the pages not change when you click the pagination buttons
b) The pages change but show the wrong data

Is there a link we can look at?
0
 
karthik80cAuthor Commented:
Sorry to reply u lately Julian .Yes Julian the page is not changing when we click the button and we don't have any link rite now . Its the dynamic table and i copy the same html generated from it and check with other html page and its working fine . Any clue on this Julian
0
 
Julian HansenCommented:
When you say dynamic - dynamic on the server or dynamic on the client?

Is the table being built dynamically on the client - if so it might be you are binding to the table before it is built.
0
 
karthik80cAuthor Commented:
Hi Julian ,

Its dynamic on server side  using asp.net
0
 
karthik80cAuthor Commented:
Ok Julian thanks for the help
0
 
karthik80cAuthor Commented:
Hi Julian ,

 i was tried with the Jquery table library with cdn link instead of local and pagination started working and thanks buddy
0
 
Julian HansenCommented:
You are welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.