Hello,
The other problem I posted about is gone.
Now I have a different problem.
When running this url in the browser I get the JSON response no problem:
http://api.geonames.org/postalCodeSearchJSON?placename=Clarens&maxRows=10&country=ZA&username=cgull
But when I run it in my code:
Code:
request = 'http://api.geonames.org/postalCodeSearchJSON?placename=Clarens&maxRows=10&country=ZA&username=cgull';
I get this error in the console:
SyntaxError: invalid label
[Break On This Error]
{"postalCodes":[{"postalCode":"9707","countryCode":"ZA","lng"
Any idea what is wrong? I am attaching the php file where I call the webservice.
Thank you