Javascript for finding city and state base on zipcode using an oracle table

Does anyone know if there is Javascript already written to find city and state based on zipcode?

Eventually yes. However, you could do it yourself as well. Have a look at my demo (once
the apex.oracle.com is back) and you can use it to create your own:
http://htmldb.oracle.com/pls/otn/f?p=31517:9
http://htmldb.oracle.com/pls/otn/f?p=31517:80
What you will need is an application process to get the data queried and then
returned into your items (region).
Denes Kubicek

Similar Messages

  • Music store account city and state are perpetually "null" -asks for update

    I am trying to buy something through the music store. All my information is there, but it keeps prompting me to update my billing information. My city and state are blank, so I type them in and hit 'done' and it asks me for my county information, which I update.
    Then it returns me to the music store where I hit "buy song" again. Then I am prompted to log in and update my billing information all over again.

    You can't.  Apps are forever tied to the AppleID that purchased them.  Delete the apps with the old AppleID and purchase them with the new AppleID.

  • Retrieve city and state from zip code that is entered by user

    I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
    1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
    2. I defined an application process called SET_CITY_STATE as follows:
        a. Process point: on demand
        b. type: anonymous block
        c. process text:
    <pre>
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    apex_util.set_session_state('P2_CO_CITY',v_city);
    apex_util.set_session_state('P2_CO_STATE',v_state);
    EXCEPTION
    WHEN OTHERS
    THEN
    apex_util.set_session_state('P2_CITY','Unknown city');
    apex_util.set_session_state('P2_STATE',null);
    END;
    </pre>
    3. Javascript is defined in the region header:
    <pre>
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_city_state(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_City_State',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    get = null;
    //-->
    </script>
    </pre>
    4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
    The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
    I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
    I placed the application on apex.oracle.com:
    Workspace: RGWORK
    Application: Online Certification Application (28022)
    Can someone assists, please.
    Thank you,
    Robert
    Edited by: sect55 on Jun 2, 2009 4:11 PM

    Hi Robert,
    Try using XML instead of session state -
    Change the application on demand process with the following script -
    >
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
    HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
    HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
    HTP.prn ('</body>');
    END;
    >
    in your javascript make sure you typing the application process name correctly as it is case sensitive.
    Hope this helps,
    Regards,
    M Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Vendor Master - street addr and PO box/different city and state

    Issue:  Check print for vendor is wrong when both street and PO Box address are populated in Vendor Master.  Print Preview shows correct PO Box with correct city and state, but when check prints using the PO Box, it uses the city from the street address.  Please help.
    Example:
    Street address for vendor is Westport, CN.
    PO Box for vendor is Newark, NJ.
    Edited by: Jan Ackerman on Sep 17, 2008 10:48 PM  Meant to type CT, not CN.

    If we change the Print Program to use the PO Box, will the SAP Print Program still know to use the street address for vendors that don't have a PO Box?  Please confirm. Thank you!

  • How to get the name of the city and state of the current location of the user

    Hi all
             i need to get the name of the city and state (full address) of the current location of the user.
    need help.

    The best way to do this is to put the monitor name as a property bag in the script and pass that to your event details. Otherwise, we're looking at querying the database each time the monitor generates an event, and this is overhead that is really not
    necessary. The other option, which is just even worse in terms of performance, is to use powershell to query the SDK for the monitor name. Both of these options are not going to be a good solution, because now you need to implement action accounts that can
    either query the database or the sdk.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Is there a way to search by Street Address, City and State Proximity?

    I want to search by only street, city and state proximity, not Zip code/postal code and distance by. Something like this image. How can I search a web app proximity only by a person's street address?

    Theodore Becker wrote:
    As far as I can tell you can no longer search your devices library , only your past iTunes purchases
    Works fine here.
    Select your device in iTunes and search away.
    I have no problem with the cloud , but I have a problem with
    Taking away from the iPod function I used to have
    Then you have no problem.
    As a work around , ( a very timely and tiresome work around ) I simply create
    A playlist with all the songs I have on my device
    Actually, that is a much, much easier solution to select what you want on your iDevice.
    Sycn selected playlists and select this (and other) playlists as you want.
    Don't need iPhone plugged in or connected to add/remove from playlist. Change it whenever you want then simply sync yrou iphone.
    You can use smart playlists to help find what is not on iPhone (Playlist is not my iPhone playlist).

  • Delivery with UPS?? ship to only having city and state?

    on the ship to area in the tracking area of the UPS tracking system, it only says the city and state, no other address information. is that common?

    Hi,
    Thank you upnorth for your input. Adding to what was said, the ship to area on the UPS tracking system would only give the city and state as to protect the privacy of the sending and receiving of an item.  However, the created tracking number should only give the shipper and receiver the complete information on tracking any item. Please refer to this link for more information.
    http://www.ups.com/?Site=Corporate&cookie=us_en_home&setCookie=yes
    Thanks, 
    [email protected]

  • I use Djay for my Apple and I would like to use TC as an external hd to access from Djay, however when I look for my external T1 drive I cannot find it in iTunes so I can load onto Djay? Any help?

    I use Djay for my Apple and I would like to use TC as an external hd to access from Djay, however when I look for my external T1 drive I cannot find it in iTunes so I can load onto Djay? Any help?

    Initially, you asked if you can hardwire your MBA to the TC. The answer is yes, by using the optional USB Ethernet adapter that Apple provides. However, in order for your MBA to access the TC's internal or USB-attached HDD, it would need to establish a network connection to it. This would be true of any NAS device on an Ethernet network. Therein, lies the problem. Your MBA cannot connect to two networks simultaneously.
    One option then, would be to have two separate iTunes Media folders; one on the MBA & the other on the TC. This way, you can download the music to your MBA when connected to the Internet at the AirPort lounge, and then use iTunes Consolidate Library feature to transfer the audio files to the TC's iTunes Media Folder location. A great program to help maintain multiple iTunes Librarys and/or Media Folders, that you may want to consider, is PowerTunes.

  • Auto-populate city and state based on zip code?

    Based on the zip code entered, can the form auto-populate the city and state in another field?

    Formscentral doesn't support this type of relational type of functionality.
    Andrew

  • How come there isn't a comma between the city and state when I go to make an envelope with an address book contact?

    How come there isn't a comma between the city and state when I go to make an envelope with an address book contact?

    On an envelope, there's not supposed to be. The US Postal Serveice prefers no punctuation, which can interfere with machine sorters. USPS Address Format

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • Hi, I have had an LG Octane for 4 years and loved it. I used it for email, surfing the web and facebook. But 6 weeks ago I stopped getting text messages, I could send but not receive.  I was told it was just worn out.  So I ordered another Octane and it w

    Hi, I have had an LG Octane for 4 years and loved it. I used it for email, surfing the web and facebook. But 6 weeks ago I stopped getting text messages, I could send but not receive.  I was told it was just worn out.  So I ordered another Octane from ebay, and it wouldn't connect to the internet. I was told by Verizon that the software had been changed.  So I ordered a NEW in Box Octane and I am having trouble with that too. Bing won't work, nothing will work that will enable me to download Verizon Opera mini that still works on my old phone. I have a smart phone with another number but I LOVE the Octane for daily use. Why will my old Octane work but I can't get a NEW one to.  Verizon guys are stumped too:( Please help!!  Thanks!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • Am going on a trip for 1 month and am not going to use my iphone during this period so should i charge it full and turn it off or keep it on till the bettery dies or what ,,,pls help???

    Am going on a trip for 1 month and am not going to use my iphone during this period so should i charge it full and turn it off or keep it on till the bettery dies or what ,,,pls help???

    Discharge it to around 50-60% then completely shut it off. Store at around room temperature. When you return connect the charger and let the battery fully charge.

  • If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    JDFitch wrote:
    Ok Great,
    Will installing Boot Camp drivers allow me to both read and write to the OS X Volume from windows?
    This is important as if it will it means i can make the windows partition a lot smaller and keep all my files on the OS X partition which would be preferable.
    Jon
    No, OSX will be read only (from Windows) and vice versa. (you can install 3rd party utilities on either or both partitions, to make read/write possible)

  • I renewed my membership for premiere pro and I still can't use the app, what should i do

    I renewed my membership for premiere pro and I still can't use the app, what should i do

    Hi Lara,
    Lara Puharic wrote:
    I renewed my membership for premiere pro and I still can't use the app, what should i do
    Why can't you use it? Do you get a warning? Does the application not launch? What happens? Answering these questions will help: FAQ: What information should I provide when asking a question on this forum?
    Thanks,
    Kevin

Maybe you are looking for