Trying to implement AJAX-based endless-page pagination

This commit is contained in:
Christoph Haas 2013-08-10 14:46:09 +02:00
parent 31f11c2d24
commit 732af154ad
3 changed files with 21 additions and 8 deletions

View file

@ -0,0 +1,16 @@
// Load forms using AJAX
//$('#form-search').submit(load_screenshots);
alert("loaded");
$('#more-screenshots').click(load_more_screenshots)
function load_more_screenshots()
{
$('#more-screenshots').html('Loading…');
$('ul.thumbnails').append('foo');
}
$.get('ajax/test.html', function(data) {
$('.result').html(data);
alert('Load was performed.');
});