From 5820ae5d91ad140f5b91162d6c806d802fae266a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Jun 2007 12:50:02 +0000 Subject: [PATCH] Dont use block=1 on show. Increase timeouts in general --- www/test1/search.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/www/test1/search.js b/www/test1/search.js index 5f04ecc..6aace33 100644 --- a/www/test1/search.js +++ b/www/test1/search.js @@ -1,4 +1,4 @@ -/* $Id: search.js,v 1.12 2007-06-11 13:33:04 adam Exp $ +/* $Id: search.js,v 1.13 2007-06-19 12:50:02 adam Exp $ * --------------------------------------------------- * Javascript container */ @@ -154,7 +154,7 @@ function show_records() if (!hits[0]) // We should never get here with blocking operations { body.innerHTML = "No records yet"; - searchtimer = setTimeout(check_search, 250); + searchtimer = setTimeout(check_search, 2000); } else { @@ -201,7 +201,7 @@ function show_records() } } if (!termtimer) - termtimer = setTimeout(check_termlist, 1000); + termtimer = setTimeout(check_termlist, 2000); } function check_search() @@ -212,8 +212,7 @@ function check_search() "&start=" + document.search.startrec.value + "&num=" + recstoshow + "&session=" + session + - "&sort=relevance" + - "&block=1"; + "&sort=relevance"; xshow = GetXmlHttpObject(); xshow.onreadystatechange=show_records; xshow.open("GET", url); @@ -276,7 +275,7 @@ function show_termlist() Number(xml.getElementsByTagName("activeclients")[0].childNodes[0].nodeValue); if (!hits[0]) { - termtimer = setTimeout(check_termlist, 1000); + termtimer = setTimeout(check_termlist, 2000); } else { -- 1.7.10.4