Buy Now
Sign in

How to: Select Country: Get Ajax State/Region/Province field

billthecat , September 15 2010
GreyHead
Hi Andy,

There's an PHP XML parser in Joomla! I think. but you are probably better off using the JSON version of the geonames API as you can decode that with a single line.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
A
andyss
Well, I finally got this working.

Apparently the response from geonames.org wasn't being populated into $form->data['curl-gh'] because of the "CURLOPT_RETURNTRANSFER=true" line in the Curl[GH] action's Params/Fieldmap. Removed that and everything worked. Since I have never touched JSON (maybe I should learn) I was looking for a solution as Bob recommended by using Joomla's php xml parser, but there are limitations/restrictions that I couldn't figure out. Hence the reason of trying to figure this one out.

It's always something small that is overlooked.

Andy
GreyHead
Hi Andy,

Well found :-) Not an obvious fix at all.

ob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
W
webdiez
How to make the similar scheme, write please... Only the country - firm - model... For the shop Internet (the order form).
Without fastening with other place.
Артем, Russia
GreyHead
Hi Artem,

I have a tutorial on this that you can buy here

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much