From 9122bc2001e414e9009c649700dcb75d05dbb988 Mon Sep 17 00:00:00 2001 From: "Anders S. Mortensen" Date: Fri, 29 Dec 2006 10:29:46 +0000 Subject: [PATCH] Introducing a general initialization function. --- www/test1/index.html | 2 +- www/test1/search.js | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/www/test1/index.html b/www/test1/index.html index e1a90a4..e2ea318 100644 --- a/www/test1/index.html +++ b/www/test1/index.html @@ -8,7 +8,7 @@ - + diff --git a/www/test1/search.js b/www/test1/search.js index 28f72a3..24f29bf 100644 --- a/www/test1/search.js +++ b/www/test1/search.js @@ -1,4 +1,4 @@ -/* $Id: search.js,v 1.1 2006-12-29 10:22:09 sondberg Exp $ +/* $Id: search.js,v 1.2 2006-12-29 10:29:46 sondberg Exp $ * --------------------------------------------------- * Javascript container */ @@ -20,6 +20,15 @@ var stattimer; var startrec; var session_cells = Array('query'); var old_session = session_read(); +var url_surveillence; + + +function initialize () +{ + start_session(); + session_check(); +} + function GetXmlHttpObject() { @@ -53,6 +62,8 @@ function start_session() xinitSession.onreadystatechange=session_started; xinitSession.open("GET", url); xinitSession.send(null); + + //url_surveillence = setInterval(session_check, 200); } function targets_loaded() @@ -197,13 +208,6 @@ function show_termlist() body.innerHTML += '' + namen[0].childNodes[0].nodeValue + ''; - /* - body.innerHTML += ' ('; - var freqn = hits[i].getElementsByTagName("frequency"); - if (freqn[0]) - body.innerHTML += freqn[0].childNodes[0].nodeValue; - body.innerHTML += ')
'; - */ body.innerHTML += '
'; } termtimer = setTimeout(check_termlist, 2000); @@ -381,7 +385,3 @@ function session_check () url_surveillence = setInterval(session_check, 200); } - - -var url_surveillence = setInterval(session_check, 200); - -- 1.7.10.4