AutoFill City & State by typing in ZipCode

Here is a great example of using AJAX to automatically lookup
the City & State by just typing in the Zip Code.
Problem is I cannot get it to work? I type in the Zip code
& nothing happens to the City & State fields?
Since the XML code works fine I'm sure the issue is with my
Ajax code on my Main Form (listed below) and how I'm assigning the
values to the variables & then to my Form fields..?
I have attached the code to my files below:
1) Part of the Dreamweaver form code that has the AJAX code
& my Form fields.
- Here is a link to my site:
http://www.clearwave.biz/Beta/T1COElogin.cfm
(username is: Beta password is: 123) Click on the "Add New T1"
button to see my Main form and View Source to my full Form code.
2) The getZipInfo.cfm code that creates the XML data.
- Here is a link to the getZipInfo.cfm file:
I tested it using
http://www.clearwave.biz/Beta/getZipInfo.cfm?URL.zip=62948
& got back the correct XML values for that Zip so I know the
XML is working fine.
I’m using : onblur="updateCityState();" on my T1BusZip
field on my Form like this:
<tr>
<td class="KT_th"><label
for="T1BusZip">Zipcode:</label></td>
<td colspan="2"><input name="T1BusZip"
onBlur="updateCityState();" id="T1BusZip"
value="<cfoutput>#Request.KT_escapeAttribute(rstblT1OrderProcessing2.T1BusZip)#</cfoutput >"
size="32" wdg:subtype="MaskedInput" wdg:mask="99999"
wdg:restricttomask="yes" wdg:type="widget" />
<cfoutput>#tNGs.displayFieldHint("T1BusZip")#</cfoutput>
<cfoutput>#tNGs.displayFieldError("tblT1OrderProcessing2",
"T1BusZip")#</cfoutput> </td>
</tr>
ps: Here is the link to the original source of this project:
http://jamesedmunds.com/testing123/ajaxtest2.cfm
Thanks for any assistance,
jlig

This post may help: http://nerdbombs.wordpress.com/2010/11/03/zipcode/
It uses Ajax and a php array to automatically display the city and state after a user enters their zip code in a form.

Similar Messages

  • Map zipcode to city., state?

    I am writing a program in Java which can pass ZIPCODE as a parameter to any other system. What I need is the corresponding city, state info send back to me..are there any web service available? I tried Google MAP API but they dont seem to have this functionality...any there any free webservices out there which can do that?
    I understand I can download zipinfo from zipinfo.com and use that almost static data as lookup and avoid the webservice call but I am still interested to know if any such WS exist.

    I don't know how up to date it is, but this should have it: [http://zips.sourceforge.net/|http://zips.sourceforge.net/]

  • City, state & zip-code DB

    Hi,
    Is there a free city, state and zipcode database available for US ?
    Basically what I want is that I have two drop downs, 1 for state, 2 for city.
    If a state is selected, cities for that state get populated from this database.
    In the same way, if a zip code is entered, both the cities and state get populated from this db.
    Thanks for all the help !

    Not that I know of....

  • Changing stored info that pops up such as address city state phone email...

    I would like to see if there is a way to change the information that pops up automatically when typing information into provided spaces requesting name address city state and phone number. I want to think that is might be part of the information saved in you key chain but am not sure if I am on the right path. My purpose is that every time I have to enter information in fields such as personal information & shipping information like you would do when ordering stuff online everything is filled in correctly except the phone number. It always puts my wife's number and then I have to go in and change it manually. It would be nice if I could figure out how to change this and save me the trouble of doing it manually every time I order something online.

    I understand what you are saying but I like that it auto fills the spaces I just want it to fill in the correct information. For example what if I moved. Is there a way to change the information that the computer enters into the fields.

  • Which table stores the valid City/State/Country combination for Customers

    Hi,
    I would like to know which table stores the valid city/state/country/county/provinces for Customer Address validation
    Any helps please?
    Thanks,
    Genoo

    Hi,
    Please ensure to include your EBS version, so as to better provide assistance..
    Please have a look at the doc as its explained in-depth:
    Projects Uptake of the TCA Architecture in Release 12 [ID 417511.1]
    Hope this helps,
    Best Regards,

  • Help with City, State Field

    Hi
    I need help in take one field with the City, State to 2 fields. One with City and the other State. I know how to take 2 fields into 1 but what is the script for 1 into 2 using the "," has the divider?
    Thank you in advance!

    Have a look here: http://w3schools.com/jsref/jsref_split.asp

  • How to batch rename images with YYYMMDD-City-State, type of format

    I want to change the names of my files to YYYMMDD-City-State, type of format.. I tried using the file naming template but all that show on the photos is the date.file extension. What am I doing wrong
    Thanks
    Mike
    Message title was edited by: Brett N

    You need one other file name specification - such as original file number - because each file name needs to be unique, and the format Date-City-State alone doesn't create unique file names.
    In the Library Module go >Library >Rename photo, and in the box that comes up click on the small triangle on the right of the field. This will bring up the file name editor.
    In the file name editor you have to select four specifications for the file name. See screen shot:
    Click <Done> and save the preset.

  • Trouble with city, state in Mysql Query

    Hello,
    I am having trouble with a query I am trying to setup.  Basically, I want the user to type in their city.  Then I want the system to ask them which city,state combo is theirs.  So if they enter "Washington" the system will return:
    Select your city/state:
    Washington, NJ
    Washington, PA
    Washington, DE
    City and state are stored as two fields in my mysql DB.  I was considering using 'select distinct' but I wasnt sure how it would work in relation to two fields.  So how would I go about making sure washington, nj only appears once (its in a database where there will be multiple washington, NJ listed).
    So anyone have any ideas or code samples they have used to do something like this?
    Thanks in advance,
    Mark

    davella wrote:
    City and state are stored as two fields in my mysql DB.  I was considering using 'select distinct' but I wasnt sure how it would work in relation to two fields.  So how would I go about making sure washington, nj only appears once (its in a database where there will be multiple washington, NJ listed).
    DISTINCT works the same way for single field or multiple fields.  It returns all distinct combinations of the values in the columns you have listed.
    SELECT  DISTINCT City, State
    FROM     Table
    WHERE  City = 'Washington'
    (Data) City, State
    Washington, NJ
    Washington, PA
    Washington, NJ
    Washington, DE
    Washington, NJ
    Washington, PA
    So for your two columns it would distinct combinations of the "City" and "State" values.  But why are there multiple "Washington, NJ" records? Are they actually different cities or duplicate records?
    (Results)
    Washington, NJ
    Washington, PA
    Washington, DE

  • US City, States and Zip database

    Hi --
    Does anyone know of a good source where I can find US City, State and Zip Code information that can be easily imported into an Oracle table?
    Thanks,
    ~Christine

    A simple search in Google using "city state zip database" as the keywords comes up with a pretty decent list of possibilties.
    Most are for $, but if youy are serious about this, a small sum such as charged by http://www.buyzips.com/ is worth it ...

  • How to extract Supplier Address add line1, city, state, zip from PO to iPro

    Folks:
    How to extract Supplier Address add line1, city, state, zip from PO to iPro?

    Hi DaveT,
    For starters you do not need to set the binding to None (Object > Binding palette). I had this in the example, because originally I didn't want the field to take part in the import XML.
    When dealing with data, more often than not you really do want the objects set with a binding.
    Using $record are you accessing the imported XML or a data connection? If so I would set up the data connection first and then bind the appropriate fields to that data connection.
    The XFA Specification may help: http://partners.adobe.com/public/developer/xml/index_arch.html.
    Hope that helps,
    Niall

  • Why is iphoto saying my city/state/zip combo is wrong when it isn't... I am trying to order a photobook I created on iphoto.

    Unable to order my iphoto photobook due to Apple telling me my city/state/zip combo in my account info is wrong when it isn't.

    iPhoto '08, Macbook Pro
    Looking at your profile signature - are you really using iPhoto '08? You need at least iPhoto '09 to be able to order books from Apple. Printing books from iPhoto '08 is no longer supported.
    Apple Photo Services: Product line details for books, cards, and calendars
    And make sure, that the iPhoto Preferences are set to the correct Print Product Store. Otherwise the Store will not interpret your address correctly:  You can only order from a store in the country of your Billing Address.

  • City, State Zip-code line...

    Hi...
    New here... Version 8.2.3 running in SAP.
    Want to format a single address line from 4 individual fields... City,  State Zip-code
    Want the City, seperated from the State by a comma and 1 space.... and State seperated from the Zip-code by 1 space.
    Examples...
    Boston, MA 07884
    Fountain Valley, CA 76877
    How to do this in the form Layout?
    In the Object Layout tab... I set the fields to "Expand to fit" in the width direction... but the City overlays the State...
    I do not want... Boston,                                     MA 07884 to accomodate longer City names.
    For now... I format the single address line in the Interface ABAP code.
    Thanks,
    Dave T...

    Hi DaveT,
    For starters you do not need to set the binding to None (Object > Binding palette). I had this in the example, because originally I didn't want the field to take part in the import XML.
    When dealing with data, more often than not you really do want the objects set with a binding.
    Using $record are you accessing the imported XML or a data connection? If so I would set up the data connection first and then bind the appropriate fields to that data connection.
    The XFA Specification may help: http://partners.adobe.com/public/developer/xml/index_arch.html.
    Hope that helps,
    Niall

  • On my i phone account is says...we couldn't verify your address.  make sure you've entered the correct street, city, state, and postal code.

    ive recently purchased an i phone.  i have an ipod with and account.  while trying to access i tunes or apps for purchase, i am able to log in, but then it asks me to validate my info.  so i do.  same credit card, card number,  sec code. billing address, everything that is used on my ipod.  then i try to verify and it says....we couldn't verify your address.  make sure you've entered the correct street, city state, and postal code.  please help.

    I'm suddenly having this same problem.  I've had the other problem for a month or two where I had to reverify my payment info every day, and now when I do that I can't because it says the address that's been in there for 5 years is now unable to be verified.  Anyone else?  Any suggestions?

  • Bill information - not valid city/state/zip combination

    Hi all,
    I just created a book by Aperture and was filling the form to buy the book.
    While at the Bill information step, it always tells that my city/state/zip information is not right - but I can't find what's wrong. I want to send to Santa Cruz de Tenerife in Spain with Postal Code 38006. I Knew that there were other place sharing the same postal code, but I have filled the city. What can I do to the disgusting form so that I can buy the book, need your help!
    Thank you in advance.

    Have you tried to put "Islas canaries" (or Canary Islands) into the "Province" field? And "Santa Cruz de Tenerife" into the "City" field?
    This may help: Apple Print Products
    see also:
    iPhoto and Aperture: Change Your Shipping Address
    iPhoto and Aperture: Edit Billing Information
    Regards
    Léonie

  • How come Apple Pay only shows time date city state for my transactions with it? It doesn't even show the name of the store or the amount-

    Using two separate Chase Visas, Apple Oay is working fine but the transaction list is very generic. It lists time, date, city, state and two dashes where amount should be. Shouldn't it at least show the name of the store and the amount?

    Hi.  I don't know if this will help, but I had this problem too.  Mine quit working after I used earbuds.  I was told that there is a switch inside the earbud port that tells the device to divert sound to earbuds.  This can get "stuck" and the device keeps thinking the earbuds are plugged in.  After reinserting the earbuds a few times, the switch was released and my speakers started working again.
    I'm not a techie.... this is just what I found to work after my iPhone 4S speakers quit.

Maybe you are looking for

  • Problem mit öffnen mehrerer PDF's in Adobe Reader X

    Hallo Adobe Community Ich habe ein Problem bei einem unserer Kunden mit Adobe Reader X. Es besteht das Problem, dass das öffnen von mehreren PDF Dateien nur verzögert möglich ist. Es wird jeweils das erste angeklickte PDF ohne Probleme geöffnet und a

  • Undoing superscript shortcut

    Hi folks. I'm a high school science teacher so I use both superscripts and subscripts pretty often. I know the keyboard shortcuts to sub/superscripts but is there a keyboard shortcut to return the font to normal?

  • Attribute Extraction

    Dears, I want to extract a attribute from a XML file. Can anyone please help me in this regard. Regards, Ram Sample XML file: ( Here i want to extract the attribute: valueClass) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jasperPrint PUBLIC "-//

  • Upsizing files in LR

    One of the great features of ACR is the ability to upsize digital camera files to, say, meet standard photo library submission specs - not to mention specifying colorspace and resolution. As far as I can see there is no way to do that within LR 1.0,

  • IOS 4.2.1 breaks web-based authentication to wifi access points

    Whenever I tried to access the *wifi access points* I use more often *whose authentication is web-based*, like the one at my public library or at my office, although I input my username and password correctly, I am always bounced back to the login fo