PageSourceSearch

https://www.mtcotools.com/livesearch.js

js mtcotools.com collected 2026-09-29 12:27:38 UTC 1,081 bytes, 40 lines download raw bytes

1
2function createRequestObject(){
3var request_o;
4var browser = navigator.appName;
5if(browser == "Microsoft Internet Explorer"){
6request_o = new ActiveXObject("Microsoft.XMLHTTP");
7}else{
8request_o = new XMLHttpRequest();
9}
10return request_o;
11}
12
13var http = createRequestObject(); 
14
15function liveSearch()
16{
17var url = "livesearch.php";
18var s = document.getElementById('qsearch').value;
19var params = "&s="+s;
20http.open("POST", url, true);
21
22http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
23http.setRequestHeader("Content-length", params.length);
24http.setRequestHeader("Connection", "close");
25
26http.onreadystatechange = function() {
27if(http.readyState == 4 && http.status != 200) {
28document.getElementById('searchResults').innerHTML='<li>Loading...</li>';
29}
30if(http.readyState == 4 && http.status == 200) {
31document.getElementById('searchResults').innerHTML = http.responseText;
32} 
33}
34http.send(params);
35}
36
37function sendToSearch(str){
38document.getElementById('qsearch').value = str;
39document.getElementById('searchResults').innerHTML = "";
40}// JavaScript Document

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.