dlh01/losses — Issue #13: Use dropdown list for countries?
Author: dlh01
Created: 2011-11-26 22:06:15+00:00
State: open

It looks like the way the map works is dependent on some assumptions about how the country names are inputted. If there's no room for error here, why not put the country names into a dropdown menu from which I would select a region when inputting an entry? That way you get to dictate the names, spellings, and how they relate to your arrays and such.

jQuery UI [also includes some autocomplete functions][1], which take an array and then have the options drop down when someone types into an input form. We could use these and I would know to pick from the options I see in the autocomplete. Same effect: You limit my opportunities for error.

[1]: http://jqueryui.com/demos/autocomplete/