Skip to content

Instantly share code, notes, and snippets.

@analogic
Created October 5, 2016 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save analogic/99ea1b7f92a0a461c750dbe49239d66b to your computer and use it in GitHub Desktop.
Save analogic/99ea1b7f92a0a461c750dbe49239d66b to your computer and use it in GitHub Desktop.
<div id="seznam-programu"></div>
<script>
var url = "https://fixnet.cz/programy-source-data";
var el = document.getElementById("seznam-programu");
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function(){
if (xhr.readyState == 4 && xhr.status == 200){
el.innerHTML = xhr.responseText;
}
};
xhr.open("GET", url, true);
xhr.send();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment