I’m still new to Javascript and would like to create a ‘pages’ feature for comments and replies.
YouTube videos have a very nice pagination feature that pages the comments well.
How do I go about doing this? My current setup is with PHP, Javascript, and MySQL.
Youtube sends an ajax request back to the server and fetches the results which is updated to the page currently viewed. Other sites also use similar technique.
Basic thing you need to know are:
$pageand$itemsPerPage.Example:
Now, as part of Javascript, here is an example of jQuery Post Request