Dynamic Dropdown for Country can Phone Code

Hi,
Can anyone show me how to create a Dynamic List for Country and Phone Code. Select a country from dropdown menu and it reloads the page to show the coutry phone code in a text field.
Example:
-- It shows a list of country
-- When a country is selected, it populate the selected country phone code to a text box on the same page.
Let say, Choose UK country and it auto populate the Phone Code "44" to the text field box on the same page.
Please advice.
Thank you

I exactly know the solution you need.
But please dont forget to award me the 4 duke dollars if you are satisfied with my solution.
The solution:
<select size="1" name="country" onChange="myFunc()">
<option value="">Please select ..</option>
<option value="0001$91">India</option>
<option value="0002$81">Japan</option>
<option value="0003$44">UK</option>
</select>
<p><input type="text" name="myTextField" size="5"></p>
<script>
function myFunc()
var ind =document.forms[0].country.selectedIndex;
if(ind!= -1)
var phoneCd = document.forms[0].country[ind].value.substring(5);
alert(phoneCd );
     document.forms[0].myTextField.value=phoneCd
else
document.forms[0].myTextField.value="";
//alert("my 4 duke dollars pls ;-)");
</script>
As you can see in the above dropdown menu "country" that I have defined the phone code in the value after the "$" symbol.
Simply substring the portion after the $ symbol and you get the phone code.
Lemme know if this helps ..
-Rohit
Message was edited by:
RohitKumar

Similar Messages

  • My phone does not show contact names for country and area code while having in coming calls. Although, I have endorsed the name with numbers. How do I the problem. My one is a iphone 3s device with updated os. Please text to help

    My iphone does not recognize saved contact number while having incoming calls due to country and area code as auto prefix. How do i fix the problem. How do i ensure that the phone recognize calls with and without the country and area code. Please text to help.

    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number.
    2) When the system answer press 1 for "Program or activate your phone"
    3) Wait for the call to disconnect. You should get a prompt stating something like, "Settings updated."
    4) Open the Task Manager and kill the Phone, Message, and Contacts Applications
    5) Wait a few minutes (I waited 3 just to be extra safe)
    6) Open the Message App to verify the fix

  • Dynamic List for Country and City

    I want to create two drop down list for Country and City. So if the user selects a country from dropdown list the other drop down list should automatically be refreshed tos how its corresponding cities.
    I tried using JCOMBOBOX but there is no method in this class there i can pass the data at run time.
    Can any one pls send me a sample code?
    Thanks

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.
    edit
    pinto_g, please post your questions to an appropriate forum in future.
    Edited by: DarrylBurke

  • Hi This is Rezwan from Bangladesh. I requests to my aunty who lives in Virginia to buy an iphone 5s country unlocked for me and send to Bangladesh. Now i want to know the total costing of iphone 5s country unlocked phone and how can she send it to BD?

    Hi This is Rezwan from Bangladesh. I requests to my aunty who lives in Virginia to buy an iphone 5s country unlocked (Without Contract) for me and send to Bangladesh. Now i want to know the total costing of iphone 5s country unlocked phone and how can she send it to Bangladesh?

    Note: When you buy an iPhone from another country, you do not have warranty in your country of residence. Any warranty and sevices are only valid in country of purchase.
    For prices, ask your aunty or go online yourself.

  • How to delete the region code for country in T005U

    Hello,
    The region code for XX country are changed, So I have deleted all entries for that country in transaction code "OVK2" and updated the new region code which should be updated in Table T005S and T005U.
    But in table T005U there are few region code for language other then EN. Now I need to delete the entries T005U for other language.
    Now region code in OVK2 = Table T005S, but not equal to T005U
    How language can be selected to delete the region code (TABLE T005U), please advise.
    Thanks in advance.
    Praveen

    Hi Praveen,
    In order to delete the entries from the language table T005U, you will have to maintain in T005S.
    It means that, suppose in table T005U, you have a region appearing in two languages danish and german and the corresponding entry does not exist in T005S, then follow the steps below.
    1. Maintain Region XX in EN in T005S.
    2. Log on in language Danish, and in table T005U, only delete the text and log off.
    3. Log on in Language German, and in table T005U, delete the text only and log off.
    4. Now your T005U table is clear, log on in language EN and delete from table T005S.
    5. Check both tables T005S and T005U for the region XX. they both should be empty.
    Regards,
    SAPFICO

  • Tax code V1 for country IN has been deleted or incorrectly changed

    Hi,
    1) Tax code V1 for country IN has been deleted or incorrectly changed   ?
    For this issue i checked in FTXP THE TAX code is available at and also i checked at vk11 for combination it is available please reply this question as soon as possible
    Thanks
    2)You cannot post to asset in company code 1100 fiscal year 2012
    For this how can i change fiscal year

    hi
    1) Tax code V1 for country IN has been deleted or incorrectly changed ?
    For this issue i checked in FTXP THE TAX code is available at and also i checked at vk11 for combination it is available please reply this question as soon as possible
    You can try to maintain rate in FTXP for Tax code V1 for Service tax condition only.
    Thanks
    2)You cannot post to asset in company code 1100 fiscal year 2012
    For this how can i change fiscal year
    check fi posting period: in view V_T001B
    check aa posting period: OAAQ, if it is not 2011, execute AJRW - Fiscal Year Change

  • Determine of Tax Code for Country/Product Category - Table handling

    Dear Experts,
    in SRM 7.0, CS, i am facing the following requirement regarding tax codes:
    We have users from different countries using SRM. These different countries have different tax codes that are to be used for legal reasons.
    My question is, how i can achieve a system behaviour, by which in the shopping cart, the correct tax codes gets selected automatically, based on the country of the user, who is creating the shopping cart.
    Question 1:
    Is it correct to assume, that this requirement can be achieved by maintaining the "Determine of Tax Code for Country/Product Category" - Table?
    Q2:
    What is the purpose of the 1st column of the above mentioned table, "Domestic/International Indicator"? Can it be left blank?
    Q3:
    Is it possible to fill in the values for the field "Country" BUT to leave the field "Category ID" empty???The reason for asking it, that otherwise several hundreds entries would have to be maintaind manaully...
    Q4:
    From where in the shopping cart or ppoma settings is the system fetching the Country code, in order to be able to use it in the table? Is there any specific attribute maintenance that has to be taken care of, so the above mentioned table can be used (e.g. delivery address, including the country information)?
    Thank you very much for your help in understanding the topic.

    Hi
    Here are my responses to your questions:
    Question 1:
    Is it correct to assume, that this requirement can be achieved by maintaining the "Determine of Tax Code for Country/Product Category" - Table?
    Answer -  If you have a requirement where different countries have different tax codes, then you do need this confiugration. Otherwise Configuraiton in Enter Tax Code  are sufficient.
    Q2:
    What is the purpose of the 1st column of the above mentioned table, "Domestic/International Indicator"? Can it be left blank?
    Answer - Sometimes you have different codes for International and Domestic purchases for a product Category. IN those situations you can select Domestic/International field to differentiate btw tax codes. Otherwise this field can be left blank
    Q3:
    Is it possible to fill in the values for the field "Country" BUT to leave the field "Category ID" empty???The reason for asking it, that otherwise several hundreds entries would have to be maintaind manaully...
    Answer - No, if you enter country, then Category Id field is mandatory. You may enter * in case you dont have multiple backend systems. otherwise you will ve to ve individual entries for each category and backend system.
    Q4:
    From where in the shopping cart or ppoma settings is the system fetching the Country code, in order to be able to use it in the table? Is there any specific attribute maintenance that has to be taken care of, so the above mentioned table can be used (e.g. delivery address, including the country information)?
    Answer - It is picked up from the address of the user where is will receive goods. and Domestic/International will be decided based on Vendor address with reference to thta address.
    I hope my responses clarify your doubts.
    Regards
    Virender Singh

  • Tax code A0 for country IN has been deleted or incorrectly changedu0092

    HI SAP Gurus
    We are facing the problem with Message FS201 i.e. Tax code A0 for country IN has been deleted or incorrectly changed’.
    Could anybody guide me ?
    Rgds
    Ashok Singh Sunhal
    Edited by: Ashok Singh Sunhal on May 10, 2008 3:29 PM

    hi
    1) Tax code V1 for country IN has been deleted or incorrectly changed ?
    For this issue i checked in FTXP THE TAX code is available at and also i checked at vk11 for combination it is available please reply this question as soon as possible
    You can try to maintain rate in FTXP for Tax code V1 for Service tax condition only.
    Thanks
    2)You cannot post to asset in company code 1100 fiscal year 2012
    For this how can i change fiscal year
    check fi posting period: in view V_T001B
    check aa posting period: OAAQ, if it is not 2011, execute AJRW - Fiscal Year Change

  • Need Value and labed different for a dynamic Dropdown in an ADF page

    Hi,
    We have an ADF page with a drop down.
    This is populated dynamically.
    We have created using the below code.
    Issue: what we need is that each value the Label set should be different.
    Code : presently hard coded
    In the Java file for the page we had the following code:
    ===========================================================
    String haircolor;
    SelectItem[] haircolorSelectItems;
    ArrayList haircolorlist = new ArrayList();
    public PatientAdvSearch() {
    haircolorlist.add(new SelectItem("Black"));
    haircolorlist.add(new SelectItem("Blonde"));
    haircolorlist.add(new SelectItem("Red"));
    haircolorlist.add(new SelectItem("Others"));
    haircolorlist.add(new SelectItem("Grey"));
    SelectItem[] haircolors = (SelectItem[]) haircolorlist.toArray(new SelectItem[0]);
    haircolorSelectItems = haircolors;
    public void setHaircolor(String haircolor) { this.haircolor = haircolor; }
    public String gethaircolor() { return haircolor; }
    public SelectItem[] getHaircolorSelectItems() {
    return haircolorSelectItems;
    ===========================================================
    And the JSPX will have the following code.
    <af:selectOneChoice binding="#{backing_PatientAdvSearch.selectOneChoicerace11}"
    id="selectOneChoicerace11"
    unselectedLabel="&lt;Select>">
    <f:selectItems value="#{backing_PatientAdvSearch.haircolorSelectItems}" />
    </af:selectOneChoice>
    ===========================================================
    This populates both Lable and Value for the Select Item with one value.
    We need two different value.
    How do we go ahead with that.
    Thanks

    Yes.. actually i am also facing the same prob...
    i need value and label to be different for dynamic dropdown.
    Please help in case any one has faced the same issue.

  • Tax code F6 for country SE has been deleted or incorrectly changed

    Hello All
    I am trying to clear one customer Invoice thru T.code F-28. After giving all parameters when simulating i am getting error message "Tax code F6 for country SE has been deleted or incorrectly changed"
    Message # FS201.
    We are using ECC 6 version.
    Any one solved this error please help me.
    Regrads
    Ravi Kiran

    Hi ,
    I  had Solve my problem ,
    This error can happen because of many reason,
    1. The insistence for tax code would be because the G/L account used
    has been made relevant for tax. Hence the system will not allow to post
    the document without tax code.
    2. If the tax code is not activated for any condition type (maintainanceof tax rate) using table 003 (Tax classification).
    3. If G/L accounts are not assigned to any deductible condition in the
    tax procedure.
    4. If it is an input tax code then not assiging it to company code
    in the following customising node.
    SPRO > Logictics general > Tax on goods mvmt > India > Determination
    of excise duty > Asssign tax code to company code..
    5. If the requirement routine 166 is assigned to the main service tax
    condition also.
    Thanks
    Devang

  • HT5570 I tried to reset setting due to my phone speaker are not functioning except if i plug in earphone.after i key in my phone code,it promp a request for restriction code which i totally cant recall.

    I tried to reset setting due to my phone speaker are not functioning except if i plug in earphone.after i key in my phone code,it promp a request for restriction code which i totally cant recall.how can i resolve this issue.

    Hello Ridhuan,
    Thanks for using Apple Support Communities.
    If you forgot your restrictions passcode you will need to restore your iPhone to its factory settings.
    i forgot my passcode
    https://discussions.apple.com/thread/5196099
    Take care,
    Alex H.

  • Is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)

    function displayMap(e) {
    var title = e.data.title,
        latlng = e.data.lat + ',' + e.data.lng;
    if (typeof device !='undefined' && device.platform.toLowerCase() == 'android') {
    window.location = 'http://maps.google.com/maps?z=16&q=' + encodeURIComponent(title) + '@' + latlng;
    } else {
    $('#map h1').text(title);
    $('#map div[data-role=content]').html('<img src="http://maps.google.com/maps/api/staticmap?center=>' + latlng + ' &zoom=16&size=320x420&markers=' + latlng + '&sensor=false">');
    $.mobile.changePage('#map', 'fade', false, true);
    my phonegap (Adobe press, Powers jQuery with dw 5.5) book (old book (c)2010-11) says for above code: // is this valid for today, is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)???
    On iOS, calling window.location loads the map directly
    into the app. That’s great until you realize that iOS devices
    don’t have a Back button, so there’s no way to exit the
    map. To get round this problem, I loaded a static map as
    an image in the map page block. It’s not interactive, but at
    least you can continue using the Travel Notes app after
    viewing the map by clicking the Back button generated by
    jQuery Mobile.

    Well, this took me a while to get solved, but it is indeed solved.
    I tried USB Overdrive and it could, and perhaps should work, but apparently it will not. When adding a device, it seems that USB Overdrive is not set up to handle any input device that does not register itself as either a Mouse or a Joystick. The VEC USB Footpedal that I'm using is "Device type: Other".
    So, I went for Quickeys. And Quickeys can do it all. It did recognize the device, I was able to assign it to the scope of the particular audio playback app I wanted to use (Amazing Slow Downer OS X - which is truly amazing. Any musicians reading this who are looking for a way to learn pieces by ear, this does it better than anything else I've seen yet).
    I created a shortcut in Quickeys for the ASD app; added the middle button of the foot pedal as the trigger; set one step, entering 'space bar' as the step (which toggles playback, similar to many audio players).
    It all worked.
    Quickeys is very confusing and seemingly featured with an endless array of options. Enter at your own risk. Ask me for help. This was the only way to get it done that I could find. I did write to the author of USB Overdrive asking him to please support additional devices as I did find some traction from gamers who like to use a foot pedal in addition to other input devices. There was a Windows-only management utility for the foot pedal that was intended for custom input, assigning the buttons to any keyboard input or mouse click event. It would be nice to have a simple and easy to use utility like this. But, Quickeys did do the job.
    Thanks for your help, you guys!!!

  • Standard Dynamic action set up for country USA

    Hi All,
    Could anybody tell me where can search standard dynamic action set up for country USA.
    Regards
    Sirisha

    Go to table V_T588Z and then enter the infotype for which you are checking. Then click on the Selection option from the menu, and then By Contents. you will get a small popup of the table fields. Scroll to the end and select "Var. function part" and then click on the green tick.  Then in the Field contents enter - T001P-MOLGA='10' then select choose.
    You will then get all the D'actions for the US. Make a note of the numbers under the column FC & No. Then go back and then check the rows as per the noted number combinations. Thats all you have all the D'actions maintained for US.

  • Can I found my activation apple ID for my i phone 4s with this iphone,s serial number, part number, imei/meid number every things I have. Pls help Me.

    Can I found my activation apple ID for my i phone 4s with this iphone,s serial number, part number, imei/meid number every things I have. Pls help Me.

    Nope. You created your Apple ID and password. Only you can change it:
    Manage My Apple ID
    If you don't know your security questions:
    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • ASA 5505 -Can I use outside dynamic IP for webserver DMZ?

    SETUP
    ASA 5505
    ASA Version 9.1(2)
    ASDM Version 7.1(3)
    I have basic license, using only three vlans (outside, inside, DMZ).
    QUESTION:
    I want to find a way (if possible) to use the single DYNAMIC IP (dhcp'd from ISP) on the "outside" interface, as a means to setup a web-server on the DMZ? I just want to allow my WHS-2011 (server) to talk to microsoft's free DDNS service where my domain name is hosted (ports 80,443,4125).
    So far, every setup option I have tried does not make it past the implicit deny acl's (on the outside interface) to the web-server (DMZ).
    I understand that the VLAN1 (inside) had to be disabled. I understand that objects now replace some of the older NAT'd components.
    CONFIG:
    object network webserver-external-ip
    host <X.X.X.X>
    ! I had set this to match my ISP DHCP address
    object network webserver
    host 172.16.0.2
    nat (DMZ,outside) static webserver-external-ip service tcp www www
    nat (DMZ,outside) static webserver-external-ip service tcp 443 443
    nat (DMZ,outside) static webserver-external-ip service tcp 4125 4125
    access-list outside_acl extended permit tcp any object webserver eq www
    access-list outside_acl_https extended permit tcp any object webserver eq 443
    access-list outside_acl_rww extended permit tcp any object webserver eq 4125
    access-group outside_acl in interface outside
    access-group outside_acl_https in interface outside
    access-group outside_acl_rww in interface outside
    ! added the dns statements below because the cisco doc (below) says it's required or dmz traffic can't get out despite default rule allowing it to do so.
    ! (ctrl-F) ... "all traffic would be blocked from the dmz to hosts on the internet"
    ! http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a0080bf150c.shtml
    object network dns-server
    host 8.8.8.8
    exit
    access-list dmz_acl extended permit udp any object dns-server eq domain
    access-list dmz_acl extended permit ip any any
    access-group dmz_acl in interface DMZ
    SUMMARY:
    I just want to allow my WHS-2011 (server) to talk to microsoft's free DDNS service where my domain name is hosted (ports 80,443,4125).
    I want to find a way (if possible) to use the single DYNAMIC IP (dhcp'd from ISP) on the "outside" interface, as a means to setup a web-server on the DMZ?
    Other:
    As an interim alternative, I have been able to setup & connect to the ASA using clientless vpn (web-ssl), and from there getting over to my WHS2011 server...-but the problem is, I have no way of knowing, or updating my DDNS once that IP changes since the ASA keeps blocking the return traffic to theh outside interface. My only assumption is that becasue I am using a single dynamic IP (outside interface) that it has nothing to re-direct the traffic to....???
    Thank You for any help you can provide!!
    k/r

    Hi,
    I cant really help with the DDNS portion but I would imagine you already have that sorted out.
    The ASA configurations however seem a bit off to me.
    Here is what you should configure
    STATIC PAT TO HOST SERVICES
    There are some changes that need to be done to both ACL and NAT configurations. First of the NAT configurations for each port require their own "object network" to be configured.
    Also since you are using a DHCP address from the ISP to act as the NAT address then you can use the keyword/parameter "interface" in the actual "nat" command. This basically tells the ASA that it should use whatever IP address is currently on the "outside" interface of the ASA. So you wont have to configure any separate "object network" for the public IP address every time it changes.
    Also, with regards to the ACL configurations. You should only configure one ACL per interface in the "in" direction. So all the rules you need to configure for traffic inbound from the Internet need to be in the same ACL that you then attach to the "outside" interface with the command "access-group"
    object network WEBSERVER-TCP80
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp www www
    object network WEBSERVER-TCP443
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp 443 443
    object network WEBSERVER-TCP4125
    host 172.16.0.2
    nat (DMZ,outside) static interface service tcp 4125 4125
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP80 eq www
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP443 eq https
    access-list outside_acl extended permit tcp any object WEBSERVER-TCP4125 eq 4125
    access-group outside_acl in interface outside
    DYNAMIC PAT FOR LANs and DMZs
    The above NAT configurations only handles the NAT for situations where the remote hosts on the Internet contact your DMZ server.
    If you want to configure Dynamic PAT for all your LAN and DMZ users which basically enable them to use the "outside" interface public IP address for Internet traffic, then you could configure this single "nat" configuration
    nat (any,outside) after-auto source dynamic any interface
    This would enable Dynamic PAT for all users behind the ASA
    I am not sure if you will run into problems since you are using a single public IP address and trying to forward TCP/443. This port is both used for SSL VPN and ASDM management of the ASA.
    If you want to change the default port of the ASDM management you can use this command
    http server enable
    If you want to change the default port of SSL VPN you can use these commands
    webvpn
    port
    Naturally before doing either of the above changes, make sure that you are not relying to them for management purposes if something was to go wrong. If you have SSH management access to the ASA then it should naturally be ok.
    I am not sure if all of the above are enough to get your setup working but it should be the basics. Naturally if there is still problems after the above suggestions it might be helpfull to see the current ASA configurations. For example NAT might not work if the ordering of NAT rules is wrong even though the actual configurations are otherwise valid.
    Hope this helps
    Please do remember to mark a reply as the correct answer if it answered your question.
    Feel free to ask more if needed
    - Jouni

Maybe you are looking for

  • Creation of a sales depot (plant ) in UK

    Dear All I need to create a sales depot in UK ,my company is based in India Can you guide me in this ,Some of the areas were I need help is in Transfer pricing , VAT in UK Pricing procedure for the UK market  Thanks in advance Anil

  • Is there a limit on number of columns that can be used to build a form?

    I am building a form, which has about 180 columns. When I added more columns, it can be compiled, but not able to re-open it to edit. Got "Internal Error " or "The request had invalid syntax" such kind of error message.

  • Disable Button based on PL/SQL call

    I have a PL/SQL Function in the database that returns a zero if a condition is true or non zero if false. I wrote a custom method in my Application Module named canReadSubmission to call this function. The first try at this returns a boolean. I expos

  • How to not lose proportion when importing AI objects using catality?

    Hi all, I have a very annoing issue when i imoprt AI assets into Flex using Catalyst. When i import the AI object and do not resize them, they look ok, but when i import them and enlarge the width, they loose proportion: Does someone knows how to kee

  • How to invoke BPEL process via HTTP POST (or GET)

    Hi, I'd like to know how to invoke BPEL process via HTTP POST (or GET), is there anyway simple to do it? Thank you