Click here to Skip to main content
15,885,146 members
Articles / Web Development / HTML

Autocomplete dragable and autohide locator control

Rate me:
Please Sign up or sign in to vote.
3.46/5 (4 votes)
3 Feb 2008CPOL3 min read 32.5K   208   19  
A User Control to change website location from one or two linked lists.
// This part generated by ServiceLocator
//-------------------
//The date was: 1/9/2008 11:51:41 PM

// states  array
var states = new Array();
states[0] = "OHIO";
states[1] = "Oregon";
states[2] = "Texas";
states[3] = "Washington";

// states and states code associated array
var state_codes = new Array();
state_codes["OHIO"] = "OH";
state_codes["Oregon"] = "OR";
state_codes["Texas"] = "TX";
state_codes["Washington"] = "WA";

// count  array
var count = new Array();
count[0] = "Adams OH";
count[1] = "Allen OH";
count[2] = "Angelina TX";
count[3] = "Ashland OH";
count[4] = "Ashtabula OH";
count[5] = "Dress OR";
count[6] = "Revolution 9 OR";
count[7] = "Scatterbrain OR";
count[8] = "TexasCounty TX";
count[9] = "WashCounty1 WA";
count[10] = "WashCounty2 WA";

// cfipses  array
var cfipses = new Array();
cfipses[0] = "001 OH";
cfipses[1] = "003 OH";
cfipses[2] = "005 OH";
cfipses[3] = "007 OH";
cfipses[4] = "01 TX";
cfipses[5] = "013 OR";
cfipses[6] = "029 OR";
cfipses[7] = "03 OR";
cfipses[8] = "06 TX";
cfipses[9] = "07 WA";
cfipses[10] = "09 WA";

//counties/services assotiative array
var name_services = new Array();
name_services["Adams OH"] = "http://www.codeproject.com";
name_services["Allen OH"] = "http://www.codeproject.com";
name_services["Angelina TX"] = "http://www.codeproject.com";
name_services["Ashland OH"] = "http://www.codeproject.com";
name_services["Ashtabula OH"] = "http://www.codeproject.com";
name_services["Dress OR"] = "http://www.codeproject.com";
name_services["Revolution 9 OR"] = "http://www.codeproject.com";
name_services["Scatterbrain OR"] = "http://www.codeproject.com";
name_services["TexasCounty TX"] = "http://www.codeproject.com";
name_services["WashCounty1 WA"] = "http://www.codeproject.com";
name_services["WashCounty2 WA"] = "http://www.codeproject.com";

// countyfipses/service assotiative array
var fips_services = new Array();
fips_services["001 OH"] = "http://www.codeproject.com";
fips_services["003 OH"] = "http://www.codeproject.com";
fips_services["005 OH"] = "http://www.codeproject.com";
fips_services["007 OH"] = "http://www.codeproject.com";
fips_services["01 TX"] = "http://www.codeproject.com";
fips_services["013 OR"] = "http://www.codeproject.com";
fips_services["029 OR"] = "http://www.codeproject.com";
fips_services["03 OR"] = "http://www.codeproject.com";
fips_services["06 TX"] = "http://www.codeproject.com";
fips_services["07 WA"] = "http://www.codeproject.com";
fips_services["09 WA"] = "http://www.codeproject.com";

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Armenia Armenia
I am a programmer for database applications and data aware web sites.

Comments and Discussions