since you've already coded this for ctry -> state.. would you consider pulling in the state -> city -> zip code and chain the ajax dropdowns for that functionality?

basically, add 2 more tables - city and zip. then all table entries would have to be keyed to the next table higher up in the food chain.

fyi, i believe the tables are already in the public domain. i'm not an ajax guy and don't know how to tie the drop downs. but that would seem to be the hard part and it appears you've already mastered that.

anyway, it would be a might nice feature. ctry state is helpful but rather limited.

just thought i'd ask.

thanks

Comments

rconstantine’s picture

Status: Active » Closed (duplicate)

Basically, zip codes are a moving target, so unless someone else wants to code it, I don't see myself getting to it. Cities are worse. My metropolitan area has had 4 new cities incorporated in the last 4 years. Patches are welcome.

newdru’s picture

sure it's a moving target. but the basic logic stays the same. you just add more rows to the appropriate tables when cities / zip are added or changed. the hard part is tying those into the ajax drop down system. but once the basics are setup, importing db records to the tables is fairly straightforward.

anyway, just thought you would be able to extend the current system for two more fields and tie in the dbs since you've already accomplished that. oh well. appreciate the work you have done.

thanks