<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Newbie help with the example from the documentation"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Newbie help with the example from the documentation"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Newbie help with the example from the documentation</title>
				<description><![CDATA[ Hello,

This is the first time I am using web services and I have no knowledge in JSON.

I copied the example from the documentation here:
<a href='http://www.geonames.org/export/ajax-postalcode-autocomplete.html' target='_new' rel="nofollow">http://www.geonames.org/export/ajax-postalcode-autocomplete.html</a>
to a site on my local machine.

It worked fine but suddnely stopped working and I get these errors in the console:
SyntaxError: syntax error
[Break On This Error] 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//E
On this file: <a href='http://api.geonames.org/export/geonamesData.js?username=demo' target='_new' rel="nofollow">http://api.geonames.org/export/geonamesData.js?username=demo</a>

And

ReferenceError: geonamesPostalCodeCountries is not defined
[Break On This Error] 	

if (geonamesPostalCodeCountries.toString().search(country) == -1) {

Can you maybe help me find the problem?

Another help I need is with coding what I actually need which is when the user enters a city he gets the post codes list and not the other way arround.

Not sure how to do that.

Thank you]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4034.page#11965</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4034.page#11965</link>
				<pubDate><![CDATA[Fri, 26 Oct 2012 06:32:12]]> GMT</pubDate>
				<author><![CDATA[ Cgull]]></author>
			</item>
	</channel>
</rss>