Trying to implement AJAX-based endless-page pagination
This commit is contained in:
parent
31f11c2d24
commit
732af154ad
3 changed files with 21 additions and 8 deletions
16
app/assets/javascripts/foo.js
Normal file
16
app/assets/javascripts/foo.js
Normal 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.');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue