From 0b7cb301f24be1148949fdbb81dd7518e7bd705e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Jul 2006 09:35:22 +0100 Subject: [PATCH] move initParams to invisible iframe --- backend-rpc.php | 3 +++ functions.js | 7 +++++-- tt-rss.css | 4 ++++ tt-rss.php | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) 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. + +
 
-- 2.39.5