<script type="text/javascript" src="search.js"></script>
</head>
-<body onload="start_session();">
+<body onload="initialize()">
<table width="100%" border="1" cellpadding="5">
<tr>
-/* $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
*/
var startrec;
var session_cells = Array('query');
var old_session = session_read();
+var url_surveillence;
+
+
+function initialize ()
+{
+ start_session();
+ session_check();
+}
+
function GetXmlHttpObject()
{
xinitSession.onreadystatechange=session_started;
xinitSession.open("GET", url);
xinitSession.send(null);
+
+ //url_surveillence = setInterval(session_check, 200);
}
function targets_loaded()
body.innerHTML += '<a href="#" onclick="refine_query(this)">' +
namen[0].childNodes[0].nodeValue +
'</a>';
- /*
- body.innerHTML += ' (';
- var freqn = hits[i].getElementsByTagName("frequency");
- if (freqn[0])
- body.innerHTML += freqn[0].childNodes[0].nodeValue;
- body.innerHTML += ')<br>';
- */
body.innerHTML += '<br>';
}
termtimer = setTimeout(check_termlist, 2000);
url_surveillence = setInterval(session_check, 200);
}
-
-
-var url_surveillence = setInterval(session_check, 200);
-