summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-07-25 09:35:22 +0100
committerAndrew Dolgov <[email protected]>2006-07-25 09:35:22 +0100
commit0b7cb301f24be1148949fdbb81dd7518e7bd705e (patch)
tree9969e15e95f4868980b7a84e574ed6c5ab7f5f69
parent5f57b06d27f62f5d7335a7073a564eacf557a05d (diff)
move initParams to invisible iframe
-rw-r--r--backend-rpc.php3
-rw-r--r--functions.js7
-rw-r--r--tt-rss.css4
-rw-r--r--tt-rss.php2
4 files changed, 14 insertions, 2 deletions
diff --git a/backend-rpc.php b/backend-rpc.php
index 6387b1e53..3d9894ee7 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 "<rpc-reply>
+ <message>$key : $value</message>
+ </rpc-reply>";
}
}
?>
diff --git a/functions.js b/functions.js
index c6f1e0d03..6473e8698 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 c228562b2..45ad7beb8 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 6aac5c9b3..e478d7c16 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -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>