support post

This commit is contained in:
Julian Descottes 2012-08-30 01:26:14 +02:00
parent aaf254cc3f
commit a1872d3521

View File

@ -75,7 +75,6 @@
getFrameIdFromUrl : function() {
var href = window.location.href;
if (href.indexOf('frameId=') != -1) {
console.log(href.substring(href.indexOf('frameId=')+8));
return href.substring(href.indexOf('frameId=')+8);
}
},
@ -467,7 +466,8 @@
xhr.open('POST', PISKEL_SERVICE_URL + "/store", true);
xhr.onload = function(e) {
if (this.status == 200) {
alert("stored key : " + this.responseText);
var baseUrl = window.location.href.replace(window.location.search, "");
window.location.href = baseUrl + "?frameId=" + this.responseText;
}
};