Result Notifications

  • loading...

Latest Results

South Hockey League results are now available on a [as near as] live basis, although this is still dependant on results being reported in a timely fashion by teams.

The ticker above and list right will output [on match days] up to the last 5 results. This is a one time notification only, once a match result has been published only an update will result in further notification of that match result.

The notes below will help you to include a Results Feed in club and hockey association websites. The reader is assumed to have some knowledge of website design, including use of javascript.


A minimal implementation is to include a hidden iframe which connects to the Results Feed on the South League website and process the window.postMessage. This provides a safe cross domain method that most modern browsers support.

The following is an example of the javascript required to handle a window.postMessage event, the iframe markup and the contents of the postMessage object using JSON.parse.

Javascript window.postMessage Event Handler
if (window.addEventListener) {
	window.addEventListener('message', function(e) {
	}, false);
else if (window.attachEvent) {
	window.attachEvent('onmessage', function(e) {
(function (window, undefined) {
    window.SHL = window.SHL || {};
    SHL.Iframe = {
        postMessage: function(event) {
            var data = JSON.parse(;
			if (data.Result) {
            // Process Result Message
HTML iframe Tag
<iframe id="dispatcher" src="/Messages/Results" style="display: none;"></iframe>

window.postMessage JSON.parse(
data {
    Result: {
        Date: "2017-10-07",
        ID: 1487,
        League: {
            ID: 21,
            Name: "Middx, Berks, Bucks & Oxon - Regional 1",
            WAPID: "mbbo1r"
        Message: "Result",
        Season: 2017,
        Status: "Played",
        Teams: [ {
            HA: "H",
            ID: 482,
            Name: "Slough 1",
            Score: 4,
            WAPID: "slgh1"
        }, {
            HA: "A",
            ID: 416,
            Name: "Oxford Hawks 2",
            Score: 2,
            WAPID: "oxhw2"
        } ]