Greetings !
I am looking for a way to know the city where my visitors are... A set of "Country/State/Town" drop-down boxes that updates each other without refreshing the page.
My site is Joomla CMS based.
Either working with drop-down lists of Country/States/Town or by a system of Zooming Maps...
Thanks !
Need a "Country/State/City" component !
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Use the Google Maps API to locate a free-form string from your users. It's so much easier for programmer and user alike.
Example:
Example:
Code: Select all
Where do you live?
[Toronto, Canada]Any exemples of where it is used ?...Kieran Huggins wrote:Use the Google Maps API to locate a free-form string from your users. It's so much easier for programmer and user alike.
Example:Code: Select all
Where do you live? [Toronto, Canada]
Also, note that my visitors must only specify their town... And i must be able to extract the city name so that it is always identical. (e.g. Montreal and not montréal or montreal... Always "Montreal"... so it can't be a freeFormat text entry.)tuthmosis wrote:Any exemples of where it is used ?...Kieran Huggins wrote:Use the Google Maps API to locate a free-form string from your users. It's so much easier for programmer and user alike.
Example:Code: Select all
Where do you live? [Toronto, Canada]
Thanks for any help !
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
It's a perfect fit, read:
http://www.google.com/apis/maps/documen ... ing_Direct
http://www.google.com/apis/maps/documen ... ing_Direct
Re: Need a "Country/State/City" component !
I don't know about integrating with Joomla, but you may want to check this forms generation class.tuthmosis wrote:Greetings !
I am looking for a way to know the city where my visitors are... A set of "Country/State/Town" drop-down boxes that updates each other without refreshing the page.
My site is Joomla CMS based.
Either working with drop-down lists of Country/States/Town or by a system of Zooming Maps...
It comes with a plug-in to create multiple linked select inputs. It can be used to retrieve options from the server, eventually from a database, without refreshing the page using AJAX request. Here is an example.
There is also a plug-in that displays a map using Google maps and lets the use pick a location on the map. The plug-in captures the coordinates into text or hidden inputs so they can be passed to the server when the form is submitted. Here is an example.