searchpage javascript (latestinfo) causes reset of search statistic after moving to next page

- disabled call via setTimeout in yacysearch.html
pull/1/head
reger 11 years ago
parent e74f548551
commit 54a0272338

@ -246,9 +246,11 @@ function latestinfo() {
var rsp = eval("(" + self.xmlHttpReq.responseText + ")");
statistics(rsp.offset, rsp.itemscount, rsp.itemsperpage, rsp.totalcount, rsp.localResourceSize, rsp.remoteResourceSize, rsp.remoteIndexCount, rsp.remotePeerCount, rsp.navurlBase);
}
}
};
self.xmlHttpReq.send(null);
}
// TODO: resets statistic on navigating to next page in Jetty implementation
/*
window.setTimeout('latestinfo();',500);
window.setTimeout('latestinfo();',1000);
window.setTimeout('latestinfo();',1500);
@ -259,6 +261,7 @@ window.setTimeout('latestinfo();',5000);
window.setTimeout('latestinfo();',6000);
window.setTimeout('latestinfo();',8000);
window.setTimeout('latestinfo();',10000);
*/
</script>
<!--#include virtual="/interaction_elements/Footer.html" -->

@ -447,6 +447,7 @@ public class Jetty8YaCyDefaultServlet extends YaCyDefaultServlet implements Reso
}
/* ------------------------------------------------------------ */
@Override
protected void sendData(HttpServletRequest request,
HttpServletResponse response,
boolean include,

Loading…
Cancel
Save