Revision df2e8038d83a8573de683c38fde2211bcc3057a2 authored by Luke Bjerring on 22 March 2018, 19:15:29 UTC, committed by GitHub on 22 March 2018, 19:15:29 UTC
1 parent e48a42f
Raw File
iframe_TAO_multi.html
<body>
<script>
function dirname(path) {
    return path.replace(/\/[^\/]*$/, '/');
}

function request() {
  var dirName = dirname(location.href);
  var client = new XMLHttpRequest,
  // create a cross-origin request
    url = dirName.replace('://', '://www.') + 'TAOResponse.py?tao=multi';
    client.open("GET", url, false);
    client.send(null);
}

if(window.parent.setup_iframe) {
  window.parent.setup_iframe();
  request();
}
</script>
</body>
back to top