•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 425,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,607 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3573 | Replies: 6
![]() |
•
•
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 202
Reputation:
Rep Power: 3
Solved Threads: 6
Personnaly I would setup a database of all the countries, than load all the countries out of the database and put them into the dropdown box. Would make the code look neater, as well if you use it on several pages the list of countires would be centralized, than you would not have change several codes to add/remove any countries you may have missed. just add/remove it to the database.
I'm sure there are many pages which will list all of the countries in the world.
There may be an easier way to do this, but that is the approach I would use.
I'm sure there are many pages which will list all of the countries in the world.
There may be an easier way to do this, but that is the approach I would use.
•
•
Join Date: Feb 2007
Location: London
Posts: 114
Reputation:
Rep Power: 2
Solved Threads: 8
You're going to have to source the list from somewhere, ideally this would be a web service, but I haven't managed to find one yet 
edit - drat, beaten to it!
edit again - found this one
http://www.webservicex.net/WS/WSDeta...SID=17&CATID=7

edit - drat, beaten to it!
edit again - found this one
http://www.webservicex.net/WS/WSDeta...SID=17&CATID=7
Last edited by davidcairns : May 3rd, 2007 at 12:40 pm.
•
•
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 202
Reputation:
Rep Power: 3
Solved Threads: 6
Yes, I agree, but the challenge is actually knowing and/or remembering all the countries resident on planet earth
. I had seen the list so many times and they are all identical - if you know what i mean - that I thought maybe there is one central point where everybody goes to get the same list. Thanks for the insight though
. I had seen the list so many times and they are all identical - if you know what i mean - that I thought maybe there is one central point where everybody goes to get the same list. Thanks for the insight though
•
•
•
•
Personnaly I would setup a database of all the countries, than load all the countries out of the database and put them into the dropdown box. Would make the code look neater, as well if you use it on several pages the list of countires would be centralized, than you would not have change several codes to add/remove any countries you may have missed. just add/remove it to the database.
I'm sure there are many pages which will list all of the countries in the world.
There may be an easier way to do this, but that is the approach I would use.
•
•
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 202
Reputation:
Rep Power: 3
Solved Threads: 6
Dave, You did it for me.
Thanks
Thanks•
•
•
•
You're going to have to source the list from somewhere, ideally this would be a web service, but I haven't managed to find one yet
edit - drat, beaten to it!
edit again - found this one
http://www.webservicex.net/WS/WSDeta...SID=17&CATID=7
Different authorities quote different numbers, from 189 to 194.
The UN has 192 members. But the Vatican refused to join, and the UN considers Taiwan to be a province of China, and won't let it join.
The 194 above don't include areas such as Palestine, Western Sahara, Puerto Rico, and England, which are territories or states in larger countries.
The UN has 192 members. But the Vatican refused to join, and the UN considers Taiwan to be a province of China, and won't let it join.
The 194 above don't include areas such as Palestine, Western Sahara, Puerto Rico, and England, which are territories or states in larger countries.
Daylight-saving time uses more gasoline
•
•
Join Date: Oct 2006
Location: somewhere in West-Africa
Posts: 202
Reputation:
Rep Power: 3
Solved Threads: 6
•
•
•
•
Different authorities quote different numbers, from 189 to 194.
The UN has 192 members. But the Vatican refused to join, and the UN considers Taiwan to be a province of China, and won't let it join.
The 194 above don't include areas such as Palestine, Western Sahara, Puerto Rico, and England, which are territories or states in larger countries.
Thanks for the insight MidiMagic, That was a bit to think about.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- I want to get started learning a programming language (Computer Science and Software Design)
- JSP: How to Extract values from dropdown (JSP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to highlight the datagrid row.....
- Next Thread: quick javascript help



Linear Mode