Hi there, I'm using a jquery plugin, but when I use it twice, it won't work. More than 4 hours between stackoverflow, jquery : how to create your own plugin..., to comprehend the $.fn, but no result this is the plugin source:
and this is
my usage:
first call is allright
var target='../ajaxScrollFav.php';
$('#favRes').scrollPagination({
nop : 5,
offset : 0,
error : '<div class="alert alert-info"><center>Il n\'ya pas des données.</center></div>'
,
delay : 500,
scroll : true,
target:target
});
});
and this is the second call
var target='../ajaxUtilScrollRes.php';
$('#content').scrollPagination({
nop : 5, // The number of posts per scroll to be loaded
offset : 0, // Initial offset, begins at 0 in this case
error : '<div class="alert alert-info"><center>Il n\'ya pas des données.</center></div>'
, // When the user reaches the end this is the message that is
// displayed. You can change this if you want.
delay : 500, // When you scroll down the posts will load after a delayed amount of time.
// This is mainly for usability concerns. You can alter this as you see fit
scroll : true, // The main bit, if set to false posts will not load as the user scrolls.
// but will still load if the user clicks.
target:target
});