# HG changeset patch # User Nicholas Jillings # Date 1432662479 -3600 # Node ID 39e56b86307599a850525314855e89247a2d5a07 # Parent 96dc339fb3825f2017065d51e4d447061e39de05 If projectReturn is specified as a url it will return to that server. Currently only tested using the localHost server on port 8000, as per the python2.py server included diff -r 96dc339fb382 -r 39e56b863075 core.js --- a/core.js Tue May 26 18:43:30 2015 +0100 +++ b/core.js Tue May 26 18:47:59 2015 +0100 @@ -270,10 +270,10 @@ // If destURL is null then download XML in client // Now time to render file locally var xmlDoc = interfaceXMLSave(); + var parent = document.createElement("div"); + parent.appendChild(xmlDoc); + var file = [parent.innerHTML]; if (destURL == "null" || destURL == undefined) { - var parent = document.createElement("div"); - parent.appendChild(xmlDoc); - var file = [parent.innerHTML]; var bb = new Blob(file,{type : 'application/xml'}); var dnlk = window.URL.createObjectURL(bb); var a = document.createElement("a"); @@ -287,6 +287,11 @@ popup.showPopup(); popup.popupContent.innerHTML = null; popup.popupContent.appendChild(submitDiv) + } else { + var xmlhttp = new XMLHttpRequest; + xmlhttp.open("POST",destURL,true); + xmlhttp.setRequestHeader('Content-Type', 'text/xml'); + xmlhttp.send(file); } return submitDiv; } diff -r 96dc339fb382 -r 39e56b863075 example_eval/project.xml --- a/example_eval/project.xml Tue May 26 18:43:30 2015 +0100 +++ b/example_eval/project.xml Tue May 26 18:47:59 2015 +0100 @@ -1,6 +1,6 @@ - + Please enter your location. Please listen to all mixes