<script type="text/javascript"> var pageIndex = 1; var pageCount; $(".template").scroll(function () { if ($(".template").scrollTop() == $(RepDetails).height() - $(".template").height()) { GetRecords(); } }); </script>
<style type="text/css"> template { height: 400px; overflow-y: scroll; } </style>
<div id="ScrollDiv" class="template"> <table> <tr> <td> <asp:Repeater ID="RepDetails" runat="server" > <HeaderTemplate> <%--<table class="httable"> <tr> <td colspan="2"> <b>JOBS</b> </td> </tr> </table>--%> </HeaderTemplate> <ItemTemplate> <table class="tl"> <tr> <td><%-- style="border-top-color:#098ABA; border-top-width:thin; border-top-style:solid;"--%> <table> <tr> <td class="ittrjd"> <asp:Label ID="lblSubject" runat="server" Text='<%#Eval("JobDecription") %>' /> </td> </tr> </table> </td> </tr> <tr> <td class="ittrcn"> <asp:Label ID="lblComment" runat="server" Text='<%#Eval("CompanyName") %>' /> </td> </tr> <tr> <td style="border-bottom-color: #a9a9aa; border-bottom-width: thin; border-bottom-style: solid;"> <table> <tr> <td class="ittre">Experience: <asp:Label ID="lblUser" runat="server" Font-Bold="true" Text='<%#Eval("ExperienceRqrd") %>' /></td> <td class="ittre">Salary: <asp:Label ID="lblDate" runat="server" Font-Bold="true" Text='<%#Eval("SalaryOffer") %>' /></td> </tr> </table> </td> </tr> <%--<tr> <td colspan="2" style="background-color:white;"> </td> </tr>--%> </table> </ItemTemplate> <FooterTemplate> </FooterTemplate> </asp:Repeater> </td> </tr> <tr> <td> <img alt="" src="images/loadingData.gif" style="display: none" /> </td> </tr> </table> </div>
<script type="text/javascript"> $(window).scroll(function () { if ($(window).scrollTop() == $(document).height() - $(window).height()) { GetRecords(); } }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)