]> git.wh0rd.org - tt-rss.git/commitdiff
move initParams to invisible iframe
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 25 Jul 2006 08:35:22 +0000 (09:35 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 25 Jul 2006 08:35:22 +0000 (09:35 +0100)
backend-rpc.php
functions.js
tt-rss.css
tt-rss.php

index 6387b1e53a460d84ef4f9aafa7f818abf4280ace..3d9894ee7a67b89fd6fca101a0a7e621b576c53c 100644 (file)
                        $key = $_GET["key"];
                        $value = $_GET["value"];
                        $_SESSION["stored-params"][$key] = $value;
+                       print "<rpc-reply>
+                               <message>$key : $value</message>
+                               </rpc-reply>";
                }
        }
 ?>
index c6f1e0d034c8b32ecbba5ceb41b203c9c9f0e4d7..6473e86980c0d3069e36673251f2b4160fa0359e 100644 (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;
index c228562b2abae2abdf12d8b7d365ec51eb68104b..45ad7beb8f4b0969f99c57179ba8c0f4cd978d99 100644 (file)
@@ -1123,3 +1123,7 @@ div.feedExtInfo {
 span.debugTS {
        color : #4684ff;
 }
+
+#backReqBox {
+       display : none;
+}
index 6aac5c9b3d2fd379224a5b6cd6170dd0bbda7075..e478d7c16d6fbd51f3b3bfa436debe1a4bdfdc4f 100644 (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>