// Live Suche function auswahltasten(e) { var keynum; var keychar; var numcheck; if(window.event) // IE { keynum = e.keyCode; } else if(e.which) // Netscape/Firefox/Opera { keynum = e.which; } // wir unterbrechen mal das Fensterschliessen if(timeout_search_for) window.clearTimeout(timeout_popup); timeout_popup = window.setTimeout(function() { closePopup(); }, 15000); if (keynum==13) { wert=document.getElementById('selectbox').options[document.getElementById('selectbox').selectedIndex].value; if (wert>0) { document.getElementById('ifab_pid').value=wert; document.getElementById('direktsuche').submit(); } } } function auswahlmaus() { wert=document.getElementById('selectbox').options[document.getElementById('selectbox').selectedIndex].value; if (wert>0) { document.getElementById('ifab_pid').value=wert; document.getElementById('direktsuche').submit(); } } timeout_search_for = null; timeout_popup = null; function closePopup() { document.getElementById("ergebnis").innerHTML = ''; } function sucheAjax(suchbegriff,lang,sessid,zuff){ if(timeout_popup) window.clearTimeout(timeout_popup); document.getElementById("ergebnis").innerHTML = ''; var xmlHttp = null; // Mozilla, Opera, Safari sowie Internet Explorer 7 if (typeof XMLHttpRequest != 'undefined') { xmlHttp = new XMLHttpRequest(); } if (!xmlHttp) { // Internet Explorer 6 und �lter try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { xmlHttp = null; } } } // Wenn das Objekt erfolgreich erzeugt wurde if (xmlHttp) { var url = "https://www.hu-berlin.de/de/service/zisneu/ajax_data.php"; //Suchscript var params = "m=2&lang="+lang+"&ifabsessid="+sessid+"&req="+suchbegriff+"&zuf="+zuff; //Suchbegriff das im Formular eigeben wurde if (lang=='de') document.getElementById("ergebnis").innerHTML = '
suche...
'; else document.getElementById("ergebnis").innerHTML = '
search...
'; xmlHttp.open("POST", url, true); //POST Request //Headerinformationen f�r den POST Request xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlHttp.setRequestHeader("Content-length", params.length); xmlHttp.setRequestHeader("Connection", "close"); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4) { // Zur�ckgeliefertes Ergebnis wird in den DIV "ergebnis" geschrieben document.getElementById("ergebnis").innerHTML = xmlHttp.responseText; document.getElementById("selectbox").focus(); timeout_popup = window.setTimeout(function() { closePopup(); }, 15000); } }; xmlHttp.send(params); } } function searchFor(suchbegriff,lang,sessid, zuff) { if(timeout_search_for) window.clearTimeout(timeout_search_for); timeout_search_for = window.setTimeout(function() { sucheAjax(suchbegriff, lang, sessid, zuff); }, 1500); }