Hi,

I wish create a block with a module , which render a calendar (templated in twig), the events linked to the calendar are display (with viewbuilder) below on click on a td .
I did this, and it work for the current month. My problem is that i need to reload my block when click on next month for exemple. i tried ajax but i've no idea how to do this.
i call a service since my controller like this:

jQuery(document).ready(function () {
    jQuery('.next-month').click(function(){
        jQuery.ajax({
                url: '/calendrier/callback',
                dataType:'json',
                success:function(response){
                    jQuery('#block-calendrierblock').html(response)
                }
            }
        )
    })

but that reload all the page in my block
someone has an idea
thx by advance