<script type="text/javascript">
function lastAddedLiveFunc(goto) {
alert(goto) ;
jQuery('.scroll_container').scrollExtend(
{
'target': 'div#scroll_items',
'url': 'components/com_a_main_search/more_content.php?limit='+goto,
'newElementClass': 'list_item more_content'
}
);
}
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
$('#limit').val( Number($('#limit').val()) + 2 );
lastAddedLiveFunc($('#limit').val());
}
});
value of go to always 0 ?????? although i put
alert(goto)
it display right value put it always 0 in this line
'url': 'components/com_a_main_search/more_content.php?limit='+goto,
Please help