This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ChadStrat
ChadStrat

For some reason I get the mentioned error when trying to utilize a public method in my component. It looks as though Framework is expecting an event handler of some specific type - but the documentation does not seem to indicate this is needed. What am I missing here?

<script type="text/javascript">
    $(document).ready(function(){
        $('#loadNextPage').click(function(){
            $.request('ProblogInfiniteList::getNextPosts', {
                update: {'ProblogInfiniteList::listItems' : '#problog-infinite-list'}
            });
        });
    });
</script>

Last updated

axomat
axomat

I dont know the reason why but the docs are pretty clear

bpettis
bpettis

I know this was asked 2 years ago. But I have found that the $.request('onVariable') needs the "on" part.

<script type="text/javascript">
$(document).ready(function(){
    $('#loadNextPage').click(function(){
        $.request('onProblogInfiniteList::getNextPosts', {
            update: {'ProblogInfiniteList::listItems' : '#problog-infinite-list'}
        });
    });
});

Last updated

emanoelevaristo

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.