1
0
www.mikescher.com/www/data/javascript/aoc_panel_interactive.js

12 lines
416 B
JavaScript
Raw Permalink Normal View History

2020-01-06 21:58:09 +01:00
function changeAOCPanel(year, shownav, linkheader, ajax, frameid)
{
let xhr = new XMLHttpRequest();
xhr.open('GET', '/api/html::panel_aoc_calendar?year='+year+'&nav='+shownav+'&linkheader='+linkheader+'&ajax='+ajax+'&frameid='+frameid);
xhr.onload = function()
{
if (xhr.status === 200) document.getElementById(frameid).innerHTML = xhr.responseText;
};
xhr.send();
return true;
}