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
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
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
1-4 of 4