how can I populate state/province according to a selected specific country - dropdown

how can I populate searchable state/provincedropdown according to a selected specific country. Is there any easy way without using any third party library? also state/province will be disable unless I select a country.
I tried but all I could do is a simple dropdown with country names

Related

Country, city and town

I want that the form shown to the user for specifying the address contains several drop down menus for countries, cities and towns. Right now, there are drop down menus for countries and states. In my prestashop, the drop down menu for states contains the cities of the selected country.
is there any good way to do it without having to include a module with charge?
I've searched too much and I don't find a solution for this.
Thanks in advance!!
You can just add the towns in the cities dropdown (and to be managed as states). A separate dropdown for the towns will require additional programming, which mean - paid module. I doubt if such module exists (separate dropdowns for cities and towns).

Get Geolocations from SQL database to be used in Bing Maps

Basically I have a set of geolocations and other information corresponding to each point in a table in a SQL database. I have a Bing Maps website with checkboxes to set different filters for which geolocation pins should be displayed. I'm basically wondering how I can most efficiently query the database and update pins on a map, based on given checkboxes.
Alternatively, as requerying may be expensive as the table size increases, how could I load the entire database and only display certain pins based on the selected checkbox filters?
When researching this I found answers regarding GeoRSS files, but those solutions are specific to points that are all loading at once and that will continue to stay in view. It doesn't seem like filters can be applied in this process (without further requerying).
EDIT: When I say 'filters' I'm basically talking about narrowing down the currently displayed pins by things like the date the geolocation was recorded, and various other things that will use checkboxes. Let's say I have a list of restaurants and they each have their ID, geolocation, date added (to the database), and a foreign key for their type of food. I'd like to be able to select through the available food-types to limit results to Italian and Mexican restaurants but still provide the functionality of showing Chinese restaurants with the click of a button.
And to make it easy, I'll initially take all database entries in.
You could use an SSRS Report with a Map Control to display the info on a Bing Map. That way you can use an expression in the "hidden" property of the marker to determine whether or not to show the pushpin and map your checkboxes to parameters.
See
http://technet.microsoft.com/en-us/library/ee240845.aspx for using a map control.
If SharePoint is an option you can have a completely interactive experience with PowerView.
Here is an introduction http://office.microsoft.com/en-gb/sharepoint-help/maps-in-power-view-HA103005792.aspx

Add New Combo Value

I am building cascading country, state and city list cascading combo. I need the below functionalities
Need to provide search functionality with dropdown and i am using this for that functionality.
Next, I need to provide user either to choose from existing dropdown values or enter new one. This can be done for both country and state when entering new city.
So my actual question is, is there any free plugin available for this functionality.
If not i have this implementation idea. I will add a option called NEW to dropdown and when user choose that, the text box will be shown for user input. And on submit i can take the value from dropdown if the textbox value is empty.
Any ideas for this implementation with MVC4
you can use this. This provides both the search and add new option functionality
SexyCombo

How to select multiple entries in address book using ABPeoplePickerNavigationController

I need to allow the user to select multiple entries from the iPhone address book before proceeding to the next action.
Currently if I use the ABPeopleNavigationController, it only allows me to pick one entry at a time. Is there any way to allow multiple selections i.e. add a checkmark beside all the names I want to select before clicking on 'done' button
This is not possible with the standard ABPeopleNavigationController.
You'll have to use a UITableView to provide the list of people to select and enable multiple selection - basically you have to do it all yourself. It isn't that hard. Just write a custom table data source on your list of people.

Indicating a user default value - flex

This was just what I was thinking for this solution and I would like to know if there's a better approach I could take?
I'm creating a simple desktop contacts application.
Users have the ability to enter in peoples contact information. I've add a combo box containing city name. The user has the ability to add city to this list and then when entering in a new contact they are able to just select the city form the drop down.
Now I'm trying to add a default city feature so if someone is constantly adding contacts from the same city when they add a new contact the combo box would show the default city automatically. In the settings mode user can view the all cities via a datagrid.
I'm trying to figure out the best way to do this. I was think I could add a default_city field to the database when user selects a city and indicates it as the desired default city it would add the info to the database. Then i could just run a separate query to input the default city into the combo box's prompt.
I know I could indicate the default city by just adding another column to the dg but I was wondering if there's a way to indicate it as being the default with a icon, or bold text instead?
Thanks for the advice!
You'll want to use item renderers to display custom info in your data grid. There's a good tutorial here:
http://www.switchonthecode.com/tutorials/flex-using-item-renderers