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"]; $key = $_GET["key"];
$value = $_GET["value"]; $value = $_GET["value"];
$_SESSION["stored-params"][$key] = $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 (!is_client) {
if (getMainContext().init_params[key] != value) { if (getMainContext().init_params[key] != value) {
debug("storeInitParam: " + key + " => " + value); debug("storeInitParam: " + key + " => " + value);
new Ajax.Request("backend.php?op=rpc&subop=storeParam&key=" + //new Ajax.Request("backend.php?op=rpc&subop=storeParam&key=" +
param_escape(key) + "&value=" + param_escape(value)); // 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; getMainContext().init_params[key] = value;

View File

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

View File

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