<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Helo with postalCodeSearchJSON"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Helo with postalCodeSearchJSON"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Helo with postalCodeSearchJSON</title>
				<description><![CDATA[ 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:
<a href='http://api.geonames.org/postalCodeSearchJSON?placename=Clarens&maxRows=10&country=ZA&username=cgull' target='_new' rel="nofollow">http://api.geonames.org/postalCodeSearchJSON?placename=Clarens&maxRows=10&country=ZA&username=cgull</a>

But when I run it in my code:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>request = 'http://api.geonames.org/postalCodeSearchJSON?placename=Clarens&maxRows=10&country=ZA&username=cgull';</pre>
		</div>

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]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4035.page#11966</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4035.page#11966</link>
				<pubDate><![CDATA[Fri, 26 Oct 2012 06:32:12]]> GMT</pubDate>
				<author><![CDATA[ Cgull]]></author>
			</item>
			<item>
				<title>Helo with postalCodeSearchJSON</title>
				<description><![CDATA[ Hi again,

I managed to fix this problem but now I have a different one, when there is more than one postal codes returned I get this error again.

It works fine when there is only one postal code returned.

Not sure what is wrong now.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4035.page#11972</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4035.page#11972</link>
				<pubDate><![CDATA[Sat, 27 Oct 2012 16:00:02]]> GMT</pubDate>
				<author><![CDATA[ Cgull]]></author>
			</item>
	</channel>
</rss>