Load Infinite Data while Scrolling Page Down in jQuery, AJAX ,PHP AND MYSQL
This excercise about my top choice put Dzone like information stacking while page scrolling down with jquery and Php. We have heaps of information however can't show all. This script encourages you to showcase small information and make quicker your site. Investigate live demo and span down. Database Table CREATE TABLE messages( mes_id INT PRIMARY KEY AUTO_INCREMENT, msg TEXT); Browser Capability : Safari, Firefox, IE, Chrome load_data.php When we are scrolling down a webpage, the script($(window).scroll) finds that you are at the bottom and calls the last_msg_funtion(). Take a look at $.post("") eg:$.post("load_data.php?action=get&last_msg_id=35") <?php include('config.php'); $last_msg_id=$_GET['last_msg_id']; $action=$_GET['action']; if($action <> "get") { ?> http://jquery.js $(document).ready(function() { function last_msg_funtion() { var ID=$(".message_box:last").attr("id"); $('div#last_msg_loader').html(''); $.post("load_data.php?action=get&last_msg_id="+ID, function(data){ if (data != "") { $(".message_box:last").after(data); } $('div#last_msg_loader').empty(); }); }; $(window).scroll(function(){ if ($(window).scrollTop() == $(document).height() - $(window).height()){…