Mercurial > hg > webaudioevaluationtool
diff core.js @ 536:efac13499354 Dev_main
Merge into dev_main
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Mon, 22 Feb 2016 12:19:43 +0000 |
parents | a95d323a911e |
children | 6d652a6c80ed |
line wrap: on
line diff
--- a/core.js Sun Feb 21 03:35:27 2016 +0000 +++ b/core.js Mon Feb 22 12:19:43 2016 +0000 @@ -342,11 +342,13 @@ if (xmlhttp.status != 200 && xmlhttp.readyState == 4) { createProjectSave(null); } else { - if (xmlhttp.responseXML == null) + var parser = new DOMParser(); + var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml"); + if (xmlDoc == null) { createProjectSave('null'); } - var response = xmlhttp.responseXML.childNodes[0]; + var response = xmlDoc.childNodes[0]; if (response.getAttribute('state') == "OK") { var file = response.getElementsByTagName('file')[0];