ajax server side pagination

ajax server side pagination

urengaurenga Posts: 2Questions: 1Answers: 0

i try to paginate by ajax call please refer the following code

"sScrollY": "250px","aLengthMenu": [[10, 15, 20, 30, -1], [10, 15, 20, 30, "All"]], 
                                                "scrollX": true,
                                                "oLanguage": {     "sSearch": "Quick Find: " } ,                                                    
                                                "sDom": 'R<"H"lfr>tC<"F"ip>',
                                                "bProcessing": true,
                                                "bServerSide": true,
                                                "sAjaxSource": "<%=request.getContextPath()%>/abcd.do",

i can see the call comming to the server when i click the next button but the table is not getting reloaded.

what should i do ?

what are the steps to debug this?

thanks
upendra.

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Please link to the page in question (as per the forum rules) so we can offer some help. Without a test case, there is little help we can offer as there isn't enough information available.

    Allan

  • urengaurenga Posts: 2Questions: 1Answers: 0

    hi allan i think this is a data issue

    { "data": [ [ "10014004","Goster City","US","BOA","4132"],[ "10014004","Hoster City","US","BOA","4133"],[ "10014004","Ioster City","US","BOA","4134"],[ "10014004","Joster City","US","BOA","4135"],[ "10014004","Koster City","US","BOA","4136"],[ "10014004","Loster City","US","BOA","4137"],[ "10014004","Moster City","US","BOA","4138"],[ "10014004","Noster City","US","BOA","4139"],[ "10014004","Ooster City","US","BOA","4140"]]}

    this is the data i am returning from server.

    will this work.

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    The data is incomplete if you are using server-side processing, which you should only need if you have 50k+ rows. If client-side processing will do, just remove the serverSide option.

    Allan

This discussion has been closed.