473,414 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

looking for zip code to state autocomplete

I'm looking for a script that will auto complete the state field when
someone enters their zipcode.

I'm currently using http://javascript.internet.com/forms/zip-to-state.html
but its kind of out dated and often returns null. Does anyone know of a more
up-to-date version or one that is updated regularly? It doesn't have to be
free.
Aug 31 '06 #1
4 2452
On Thu, 31 Aug 2006 11:09:44 -0500, Zen Masta <no****@nospam.comwrote:
I'm looking for a script that will auto complete the state field when
someone enters their zipcode.

I'm currently using
http://javascript.internet.com/forms/zip-to-state.html
but its kind of out dated and often returns null. Does anyone know of a
more
up-to-date version or one that is updated regularly? It doesn't have to
be
free.
I can think of a couple sources for updated data. The USPS will sell you a
copy of the database. That will be the most up-to-date, and I believe they
offer a subscription so you can receive updates regularly.

USPS - ZIP + 4® Product
http://www.usps.com/ncsc/addressinfo/zip4.htm

Alternatively, the Census Bureau offers a file containing the data they
use to determine the area covered by a zip code. It is freely available,
but the most recent version is c.2000.

Census 2000 Gazetteer Files
http://www.census.gov/geo/www/gazetteer/places2k.html

--
Justin Piper
Bizco Technologies
http://www.bizco.com/
Aug 31 '06 #2
perfect, thanks.
Sep 1 '06 #3
"Zen Masta" <no****@nospam.comwrote in message
news:#U**************@TK2MSFTNGP06.phx.gbl...
I'm looking for a script that will auto complete the state field when
someone enters their zipcode.

I'm currently using http://javascript.internet.com/forms/zip-to-state.html
but its kind of out dated and often returns null. Does anyone know of a
more
up-to-date version or one that is updated regularly? It doesn't have to be
free.
Basically, the state can be identified from the first
three digits of a zip code; (one exception is noted below).

You could write your own lookup around this data:

005 =NY=New York
010-027=MA=Massachusetts
028-029=RI=Rhode Island
030-038=NH=New Hampshire
039-049=ME=Maine
050-059=VT=Vermont
055 =MA=Massachusetts
060-069=CT=Connecticut
063 =NY=New York
070-089=NJ=New Jersey
100-149=NY=New York
150-196=PA=Pennsylvania
197-199=DE=Deleware
200 =DC=District of Columbia
201 =VA=Virginia
202-205=DC=District of Columbia
206-219=MD=Maryland
220-246=VA=Virginia
247-268=WV=West Virginia
270-289=NC=North Carolina
290-299=SC=South Carolina
300-319=GA=Georgia
320-349=FL=Florida
350-369=AL=Alabama
370-385=TN=Tennessee
386-397=MS=Mississippi
398 =GA=Georgia
400-427=KY=Kentucky
430-459=OH=Ohio
460-479=IN=Indiana
480-499=MI=Michigan
500-528=IA=Iowa
530-549=WI=Wisconsin
550-567=MN=Minnesota
570-577=SD=South Dakota
580-588=ND=North Dakota
590-599=MT=Montana
600-629=IL=Illinois
630-658=MO=Missouri
660-679=KS=Kansas
680-693=NE=Nebraska
700-714=LA=Louisiana
716-729=AR=Arkansas
730-749=OK=Oklahoma
733-799=TX=Texas
800-816=CO=Colorado
820-831=WY=Wyoming (+83414)
832-838=ID=Idaho
840-847=UT=Utah
850-865=AZ=Arizona
870-884=NM=New Mexico
885 =TX=Texas
889-898=NV=Nevada
900-961=CA=California
967-968=HI=Hawaii
970-979=OR=Oregon
980-994=WA=Washington
995-999=AK=Alaska

I generated the above from this link:
http://www.downloadzipcode.com/

I ignored those other than states plus DC;
for example, Guam, Puerto Rico, et.al.

I found one glaring anomoly: 83414 is in Wyoming
while all other 834-prefixed zip codes are in Idaho!


Sep 2 '06 #4
Hey thanks. that helps a lot too.
Sep 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Chris Lott | last post by:
I already use and am happy with a variety of text editors (vim, emacs, ultraedit, jedit, Homesite) depending on my needs, but I would like recommendations for a PHP specific IDE that will run on...
2
by: scorp7355 | last post by:
I was wondering if there is some other way to turn autocomplete off besides using "autocomplete=off", using a meta tag or something similar. It would be great if there is some way to turn it off...
40
by: Alex | last post by:
Hello, does anybody know how to turn off the autocomplete feature for a certain text field? I am aware of the "autocomplete" attribute, but I have seen other implementions achieving it...
0
by: Thorsten Ottosen | last post by:
Hi, I'm using the AutoComplete attribute to control transactions. What happens if I call functions with the AutoComplete attribute from within other functions with the AutoComplete attribute?...
2
by: Mrinal Kamboj | last post by:
Hi , Need to get some basic info regarding AutoComplete Attribute in COM+ . I am having a class with TransactionOption set to Required , now for this class , can i mark all the methods with...
0
by: Blaine | last post by:
Is there a way to change the startup width of the Autocomplete list that popups when you use the Autocomplete features of a listbox. For example, I have a small list box the will display the 2...
1
by: rbg.net | last post by:
I know that there is a autocomplete property for the HTML "INPUT type=text" control which if set to OFF, disables autocomplete of the input textbox (doesn't remember previously entered values) ...
1
by: wkerplunk | last post by:
Below is what I have build with several different languages. It works great but I need help, I am stuck. When you click on an item in the dropdown autocomplete div it does a mousedown function...
1
by: =?Utf-8?B?UmV5?= | last post by:
I have a textbox and linked that with the autocomplete extender I have created the webservice and the WebMethod and returns a ToArray to the textbox. Everything works when I type normal string...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.