Please see: https://www.npmjs.com/package/@zaxbux/matomo-js-typescript
This is some basic documentation on how the Winter CMS AJAX framework currently works.
Name | Purpose | Values |
---|---|---|
X-Requested-With |
Tells Winter/Laravel/Symfony that the request is an "AJAX Request". | XMLHttpRequest |
X-WINTER-REQUEST-HANDLER |
Tells Winter which AJAX handler method to use on the controller/component. modules/backend/classes/Controller.php#L435 | Component handler: component::onEvent ; Generic handler: onEvent (Note: the onAjax handler name will always return null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! \brief Add "X-UCM-AudioRecord" header and "X-UCM-CallPark" header to outgoing message | |
* | |
* if the right is allow callee or allow both, add the header in Invite message; | |
if the right is allow caller or allow both, add the header in 200 for Invite message | |
* | |
* \param req The request/response to which we will add the header | |
*/ | |
void add_feature_map_header(pjsip_tx_data *tdata, int outgoing_call) | |
{ | |
char audio_record_code[12] = {0}; |
Here's my notes during the course of developing a screensaver for Windows 10.
My initial starting point:
https://sites.harding.edu/fmccown/screensaver/screensaver.html
config/cms.php
return [
'disablePlugins' => [
'October.Demo', // The demo plugin is re-installed with every update, this keeps it permanently disabled
],
];
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Listen to AJAX setup event | |
// This event is fired before request is formed | |
// Allows the request data to override input values | |
// Useful for custom controls, input masks, etc | |
$(window).on('ajaxSetup', function (e, context) { | |
// Find the form and inputs from e.target (the submit button) | |
// Select specific forms and inputs by modifying $('form') and $('input') | |
$(e.target).closest('form').find('input').each(function() { | |
var inputName = $(this).attr('name'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; |
NewerOlder