move initParams to invisible iframe

This commit is contained in:
Andrew Dolgov 2006-07-25 09:35:22 +01:00
parent 5f57b06d27
commit 0b7cb301f2
4 changed files with 14 additions and 2 deletions

View file

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

View file

@ -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;

View file

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

View file

@ -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>