Q
|
I have a need to dynamically modify my site to include a dropdown list of countries if CountryHawk determines the user is in a foreign country. I want to position the list so that the user’s country appears in the list based on the information provided by CountryHawk. How can I do this?
|
A
|
The CountryHawk GetSelectList method is designed to do exactly this. It automatically generates all the HTML you need to build the drop down list form field with all the countries (or optionally just the countries you want to list). You can choose a specific country to be highlighted by default, or by default CountryHawk will highlight the country the visitor is from.
For more details see the demo at http://www.cyscape.com/products/country/samples/ch_listbox.asp. This also includes the source. All this can be done with just a single line of code by calling the GetSelectList method!
Note that use of the GetSelectList method requires the Professional or Enterprise Edition of CountryHawk.
|