PageSourceSearch

https://www.bestplacesinusa.com/js/dream_lifestyle_city_ajax.js

js bestplacesinusa.com collected 2026-10-03 02:30:48 UTC 1,421 bytes, 61 lines download raw bytes

1var xmlHttp ;
2	 
3	function getCity(state)
4	{	 
5	  var lifestyle_id    = document.getElementById('lifestyle').value;    
6	  var url             = root_http_path+"user/getcity_fromstate.php?state="+state+"&lstyle=yes&lifestyle_id="+lifestyle_id;
7	  xmlHttp             = GetXmlHttpObject(responseSearchSection)
8 		xmlHttp.open("GET", url , true)
9 		xmlHttp.send(null)
10	} 
11	
12	
13	
14	function responseSearchSection() 
15	{ 	 	 	 	 	 	 
16		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
17		{ 	 
18		   document.getElementById('city_dis').innerHTML = xmlHttp.responseText ; 
19		 } 
20	} 
21	
22	
23	
24	
25	
26	function GetXmlHttpObject(handler)
27	{ 
28		var objXmlHttp=null
29	
30		if (navigator.userAgent.indexOf("Opera")>=0)
31		{
32			alert("This example doesn't work in Opera") 
33			return 
34		}
35		if (navigator.userAgent.indexOf("MSIE")>=0)
36		{ 
37			var strName="Msxml2.XMLHTTP"
38			if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
39			{
40				strName="Microsoft.XMLHTTP"
41			} 
42			try
43			{ 
44				objXmlHttp=new ActiveXObject(strName)
45				objXmlHttp.onreadystatechange=handler 
46				return objXmlHttp
47			} 
48			catch(e)
49			{ 
50				alert("Error. Scripting for ActiveX might be disabled") 
51				return 
52			} 
53		} 
54			if (navigator.userAgent.indexOf("Mozilla")>=0)
55			{
56				objXmlHttp=new XMLHttpRequest()
57				objXmlHttp.onload=handler
58				objXmlHttp.onerror=handler 
59				return objXmlHttp
60			}
61	} 

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.