PageSourceSearch

https://www.uma-tomo.com/mailform/postcodes/get.cgi?js

js uma-tomo.com collected 2026-10-06 19:45:03 UTC 2,476 bytes, 80 lines download raw bytes

1<!--
2	// 郵便番号から住所を求めるjs
3	// 以下がフォームのHTMLから見たCGIまでのパス
4	// 基本的に /mailform/postcodes/get.cgi? は修正しなくても動作します。
5	var getpostcode_cgi = "/mailform/postcodes/get.cgi?";
6	var postcode_form_Id = "";
7	var postcode_ELM = "";
8	var feedback_address = "";
9	function postcode_getQuery(){
10		if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
11			var obj = document.forms[postcode_form_Id];
12			var getAddress = decodeURI(httpObj.responseText);
13			var getAddressGroup = new Array();
14			getAddressGroup = getAddress.split(",");
15			if(getAddressGroup.length == 3){
16				obj.elements[feedback_address].value = getAddressGroup[0] + getAddressGroup[1] + getAddressGroup[2];
17			}
18		}
19	}
20	function mfpc(formId,postcodeELM,fb_address){
21		var obj = document.forms[formId];
22		postcode_form_Id = formId;
23		postcode_ELM = postcodeELM;
24		feedback_address = fb_address;
25		var single_char = new Array('0','1','2','3','4','5','6','7','8','9','-');
26		var double_char = new Array('0','1','2','3','4','5','6','7','8','9','-');
27		var border = new Array("-", "-", "ー", "―", "ー", "‐");
28		for(i=0;i<single_char.length;i++){
29			var temp = new Array();
30			temp = obj.elements[postcodeELM].value.split(double_char[i]);
31			obj.elements[postcodeELM].value = temp.join(single_char[i]);
32		}
33		for(var i = 0; i < border.length; i++){
34			obj.elements[postcodeELM].value = obj.elements[postcodeELM].value.replace(border[i], "");
35		}
36		var query = obj.elements[postcodeELM].value;
37		if(query.length > 3){
38			httpObj = createXMLHttpRequest();
39			httpObj.onreadystatechange = postcode_getQuery;
40			httpObj.open("GET",getpostcode_cgi+encodeURI(query),true);
41			httpObj.send(null);
42		}
43		else {
44			obj.elements[postcodeELM].focus();
45		}
46		return false;
47	}
48	function createXMLHttp() {
49		try {
50			return new ActiveXObject ("Microsoft.XMLHTTP");
51		}catch(e){
52			try {
53				return new XMLHttpRequest();
54			}catch(e) {
55				return null;
56			}
57		}
58		return null;
59	}
60	function createXMLHttpRequest(){
61		var XMLhttpObject = null;
62		try{
63			XMLhttpObject = new XMLHttpRequest();
64		}
65		catch(e){
66			try{
67				XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
68			}
69			catch(e){
70				try{
71					XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
72				}
73				catch(e){
74					return null;
75				}
76			}
77		}
78		return XMLhttpObject;
79	}
80//-->

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.