Mobile app version of vmapp.org
Login or Join
Debbie626

: Best way to let users choose country/language when submiting an URL to a directory I want to offer the user the possibility to add the country/language for websites they would submit to a fairly

@Debbie626

Posted in: #Usability #UserFriendly #UserInput

I want to offer the user the possibility to add the country/language for websites they would submit to a fairly simple website directory. I have a folder with flags from www.famfamfam.com/lab/icons/flags/ . The flag images are named according to the ISO 3166-1 alpha-2 country codes, meaning that I could make a PHP script that would be able to retrieve images and the name of the country retrieved from the image name (not the full name, but it wouldn't be necessary).

Just to make things clearer, I couldn't find a proper combo-box jQuery plugin for my needs (that would act exactly like the native but with an icon before the text) and don't really have the time to develop one on my own. Considering the number of images, I also wouldn't just display them all with a radio box near them. Also, having a classic drop-down list would be a nightmare for me as I would have to assign the short country name manually to each entry, or do it once for every country. Offering the user a dropdown list with the short country names but no flag near them would also be unfriendly and confusing.

The idea is that every website featured in the directory would have the country flag icon near it. I have the images named properly but I don't know how to let the user choose the right image for their website. Any idees?

Thank you all in advance!

EDIT

Temporary solution is this file: www.andrewpatton.com/countrylist.csv It contains a list of countries including various other info, like the short country name, the same name that's used for the flag images. I can take that information and have a classic like this:

<select name="countries">
<option value="ro">Romania</option>
<option value="ie">Ireland</option>
<!-- and so on -->
</select>


Still, If anybody has a better idea...

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Caterina187

I would advise you to reserve a div/box for the country flag and set its visibility as hidden, thereby reserving its space. Offer the user a regular dropdown list and let the flag fade-in as they select the country (assuming they are filling out a regular form). The idea behind is that the user should never be offered the option of setting the flag as it is simply too confusing and overwhelming at first, both for that user, other users and yourself.

The parsing of the text for the correct image can be done server side with a simple script.

The good thing is that with time, users will get used to seeing the flags and welcome them, possibly beginning to distinguish between the flags. There really isn't much to write in the way of scripts though, save for minor ones. That is my view.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme