GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Get city list of a country via Geonames webservices in Javascript  XML
Forum Index -> General
Author Message
leonhearts25



Joined: 03/08/2010 09:57:53
Messages: 1
Offline

Hello all,

I am currently trying to code a HTML web using javascript.
There's 2 comboboxes in the screen.
The first combobox allows user to select a country.
After the country being selected, the 2nd combobox show the cities list of the selected country.
I've been googling around but cannot find any clues how to put Geonames webservice in my javascript.
I've been reading in Geonames websites but still didnt understand how i should use webservices ? what service should i use ? etc.
Is there anyone can explain or give me any clues ?
Thank you

geotree


[Avatar]
Joined: 23/07/2007 18:28:40
Messages: 138
Location: France
Offline

Webservices are usually called via "ajax" to dynamically populate HTML elements (select, ul, etc) without reloading the full page.
Very easy to implement using a javascript library such as jQuery :
http://jquery.com

Search for jQuery on this forum :
http://forum.geonames.org/gforum/jforum.page?module=search&action=search&clean=1&search_keywords=jQuery&search_terms=all&search_forum=&sort_by=time&sort_dir=DESC&search_cat=

Or have a look here :
http://forum.geonames.org/gforum/posts/list/1875.page

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team