From: Andrew Dolgov Date: Tue, 25 Jul 2006 08:35:22 +0000 (+0100) Subject: move initParams to invisible iframe X-Git-Tag: schema_freeze_for_1.2.2~65 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0b7cb301f24be1148949fdbb81dd7518e7bd705e;p=tt-rss.git move initParams to invisible iframe --- diff --git a/backend-rpc.php b/backend-rpc.php index 6387b1e5..3d9894ee 100644 --- a/backend-rpc.php +++ b/backend-rpc.php @@ -228,6 +228,9 @@ $key = $_GET["key"]; $value = $_GET["value"]; $_SESSION["stored-params"][$key] = $value; + print " + $key : $value + "; } } ?> diff --git a/functions.js b/functions.js index c6f1e0d0..6473e869 100644 --- a/functions.js +++ b/functions.js @@ -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; diff --git a/tt-rss.css b/tt-rss.css index c228562b..45ad7beb 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1123,3 +1123,7 @@ div.feedExtInfo { span.debugTS { color : #4684ff; } + +#backReqBox { + display : none; +} diff --git a/tt-rss.php b/tt-rss.php index 6aac5c9b..e478d7c1 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -87,6 +87,8 @@ window.onload = init; start the daemon process or contact instance owner. + +