The ASP list "load more" function is a function that displays the latest records on the list page by querying the database, thereby triggering the link and making corresponding more parameters.
We can see such an application in the comment columns of some Tencent websites. The list does not use paging bars. Instead, a certain number of records are loaded at one time and displayed on the list page. When the user browses to the bottom of the list page, he or she can click "Load Updates" More" to view more records.
Principle: When the page is loaded, jQuery requests data from the background. The ASP program displays the latest records on the list page by querying the database. There is a "more" link at the bottom of the list page. By triggering the link, the system sends data to the server. Send an Ajax request, the background ASP program receives the request parameters and responds, obtains the corresponding records from the database and returns them to the front-end page in the form of JSON. The front-end page jQuery parses the JSON data and appends the data to the list page. This program is modified from: jQuery+PHP to browse more content
jquery.more.js parameter configuration
'amount' : '4', //The number of records loaded each time
'address' : '', //Request the address of the background, leave it blank here
'format' : 'json', //Data transmission format
'template' : '.single_item', //html records the class attribute of DIV
'trigger' : '.get_more', //Trigger the class attribute to load more records
'scroll' : 'false', //Whether scrolling trigger loading is supported
'offset' : '100', //The offset when scrolling triggers loading