Not so difficult. Do the following
1) register a custom handler on your "load more" linke. For example, something like
$j('a[name=pageForward]').each(function() {
$j(this).click(function(e) {
e.preventDefault();
defaultPage++;
doSearch(defaultPage);
});
})
note that I added a name attribute to my anchor tags. The doSearch does:
2) fires the ajax to load more. also, replace the content of load more with 'Loading' or whatever
$.ajax({
url: url,
data: queryString,
dataType: json or xml,
cache: false,
beforeSend: function(xhr) {
},
success: function(data, status, xhr) {
},
error: function(xhr, status, errorText) {
that.showNothing();
},
complete: function(xhr, status) {
}
});
Look in the jquery docs for $.ajax for what each of those mean. If you want you can handle modifying the dom in the before and complete callbacks that your register.
3) on ajax complete, populate the data, and change the link back (or remove your "Loading" message).
As personal preference, I would disable the link in 2, and have a special div with a "Loading" message appear with the loading is happening.
Also, something more advanced would be to create a jquery plugin for your paging view...