PDA

View Full Version : Javascript city state zipcode country component



vijay172
18 Mar 2009, 9:07 PM
Hi,

Has anyone used a stable Javascript component for city, state,zip,country ? Doesn't matter if it costs money as long as it is usable off the shelf and has the US Military Area codes too.

I have found a few by Googling but wanted to know if users had any good experience with any of these components ?

TIA,
Vijay

Animal
18 Mar 2009, 10:39 PM
A Javascript component won't contain data will it?

That will come from your server when the user interacts with the component in some way, and the component then makes a request to a script which you write on your server to provide that data.

This is exactly how the http://extjs.com/deploy/dev/docs/?class=Ext.form.ComboBox works.

Here's a highly customized example. It does paging of the matching data, but that's optional, you can just retrieve the whole matching dataset and display in the dropdown if the dataset is not huge...

http://extjs.com/deploy/dev/examples/form/forum-search.html