$(window).scroll(function() {
    if( $(window).scrollTop() == $(document).height() - $(window).height()) {
        $.ajax({
        type: "GET",
        url: "not_data.php",
        data: dataString,
        success: function my_func () {
           // display 10 new names.
        }
        });
    }
});
this is not_data.php
<?php
$name_query=mysql_query("SELECT name FROM  names");
        while($run_query = mysql_fetch_assoc($name_query)) {
            $name = $run_query['name'];
            echo $name;
}
?>
i want to call a new ajax request and get 10 new names from table names everytime user scrolls down to bottom of scrollbar.
$name is the only variable from not_dat.php
 
    