public function supports_ajax() {
        // set up default values
        $ajaxsupport = parent::supports_ajax();

        // get the information from the course format library
        $featurefunction = 'callback_'.$this->format.'_ajax_support';
        if (function_exists($featurefunction)) {
            $formatsupport = $featurefunction();
            if (isset($formatsupport->capable)) {
                $ajaxsupport->capable = $formatsupport->capable;
            }
        }
        return $ajaxsupport;
    }