How to find the total number of pages in java script . Kindly let me know how to achieve it.
Thanks in advance.
Karn Kumar wrote:Can you elaborate what all you tried and how exactly you are trying so that we can understand your requirement ?
Is it simply to fetch total Count / Per Page records = total pages (Can be done by Ajax call to get DB call and return final total number of pages ) .
We are uploading a pdf file from client side. Actually we need to the find the total number of pages of the document based on which the user will decide whether the file has to be uploaded or not.
Instead passing it to the another jsp file and calculating the pagenumber, we need to handle this in the same java script file itself.