From 9afb13b02fdf790f52c043ddd60bbb04be2b1991 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Mon, 30 Jun 2014 00:35:02 -0300 Subject: [PATCH] parsing text response manually from ajax request --- mindplot/src/main/javascript/LocalStorageManager.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mindplot/src/main/javascript/LocalStorageManager.js b/mindplot/src/main/javascript/LocalStorageManager.js index b4044b36..63017448 100644 --- a/mindplot/src/main/javascript/LocalStorageManager.js +++ b/mindplot/src/main/javascript/LocalStorageManager.js @@ -38,10 +38,10 @@ mindplot.LocalStorageManager = new Class({ $.ajax({ url: this.documentUrl.replace("{id}", mapId), type:'get', - dataType: "xml", - async:false, - success: function (responseText) { - xml = responseText; + dataType: "text", + async: false, + success:function (response) { + xml = response; } }); // If I could not load it from a file, hard code one. @@ -50,8 +50,7 @@ mindplot.LocalStorageManager = new Class({ } } - var parser = new DOMParser(); - return parser.parseFromString(xml, 'text/xml'); + return jQuery.parseXML(xml); }, unlockMap:function (mindmap) {