I've 2 pop-ups to display the user list & admin list which would display 10 results per page, which is working fine.
I'm getting the page nos. from the java servlet in the JSON.
Note: There are 2 parameters passed in the url - resType and pageNo.
pageIndex returns 0, 10, 20 ...(multiples of 10).
result: checks what sort of result I want. You can ignore this part.
So my url in the createTable function looks something like this instead -
''/abc/myData.json?result="+resType+"&pageIndex="+pageNo
In my case(for the url I'm using), the previous & next buttons are getting hidden completely. But over here, it seems to be working fine.
What should I update in my code to make it work perfectly fine for my url as well?