ALERT in text
This commit is contained in:
parent
2376d8bffd
commit
0bf7510bf6
|
@ -43,9 +43,9 @@
|
|||
function getTododataFromURL(url, id) {
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
alert(xmlhttp.readyState);
|
||||
/* alert(xmlhttp.readyState);
|
||||
alert(xmlhttp.status);
|
||||
alert(xmlhttp.responseText);
|
||||
alert(xmlhttp.responseText); */
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
var seasonobj = YAML.parse(xmlhttp.responseText);
|
||||
var statobj = new Object();
|
||||
|
@ -92,9 +92,9 @@
|
|||
function getTextFileFromURL(url, id) {
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange = function () {
|
||||
/* alert(xmlhttp.readyState);
|
||||
alert(xmlhttp.readyState);
|
||||
alert(xmlhttp.status);
|
||||
alert(xmlhttp.responseText); */
|
||||
alert(xmlhttp.responseText);
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
|
||||
var text = xmlhttp.responseText;
|
||||
document.getElementById(id).innerHTML = marked.parse(text);
|
||||
|
|
Loading…
Reference in New Issue