move initParams to invisible iframe

master
Andrew Dolgov 19 years ago
parent 5f57b06d27
commit 0b7cb301f2

@ -228,6 +228,9 @@
$key = $_GET["key"];
$value = $_GET["value"];
$_SESSION["stored-params"][$key] = $value;
print "<rpc-reply>
<message>$key : $value</message>
</rpc-reply>";
}
}
?>

@ -1308,8 +1308,11 @@ function storeInitParam(key, value, is_client) {
if (!is_client) {
if (getMainContext().init_params[key] != value) {
debug("storeInitParam: " + key + " => " + value);
new Ajax.Request("backend.php?op=rpc&subop=storeParam&key=" +
param_escape(key) + "&value=" + param_escape(value));
//new Ajax.Request("backend.php?op=rpc&subop=storeParam&key=" +
// param_escape(key) + "&value=" + param_escape(value));
var f = getMainContext().document.getElementById("backReqBox");
f.src = "backend.php?op=rpc&subop=storeParam&key=" +
param_escape(key) + "&value=" + param_escape(value);
}
}
getMainContext().init_params[key] = value;

@ -1123,3 +1123,7 @@ div.feedExtInfo {
span.debugTS {
color : #4684ff;
}
#backReqBox {
display : none;
}

@ -87,6 +87,8 @@ window.onload = init;
start the daemon process or contact instance owner.
</div>
<iframe id="backReqBox"></iframe>
<ul id="debug_output"></ul>
<div id="infoBoxShadow"><div id="infoBox">&nbsp;</div></div>

Loading…
Cancel
Save