<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Line break in timezoneJSON output"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Line break in timezoneJSON output"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Line break in timezoneJSON output</title>
				<description><![CDATA[ I'm retrieving the timezone and current timestamp in a web page via JSONP. But this fails due to a line break / empty line at the end of the timezoneJSON response. Why is there a line break / empty line anyway at the end of the JSON response? Or is there a way to bypass this? Here's the code snippet I'm using:

 <a href='http://ws.geonames.org/timezoneJSON?lat=51.55&lng=4.8' target='_new' rel="nofollow">http://ws.geonames.org/timezoneJSON?lat=51.55&lng=4.8</a>

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
var time_geoplaces_url = "http://ws.geonames.org/timezoneJSON?lat=" + geo_lat + "&lng=" + geo_lon;
var time_geoplaces = dojo.io.script.get&#40;{
	"url":time_geoplaces_url
}&#41;;
		
console.log&#40;time_geoplaces_url&#41;;
console.log&#40;time_geoplaces&#41;;
</pre>
		</div>

Error:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
invalid label
&#91;Break on this error&#93; {"time":"2009-05-22 14:54","countryName"...zoneId":"Europe/Amsterdam","lat":51.55}\n
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1409.page#5888</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1409.page#5888</link>
				<pubDate><![CDATA[Fri, 22 May 2009 14:56:43]]> GMT</pubDate>
				<author><![CDATA[ ibec]]></author>
			</item>
			<item>
				<title>Re:Line break in timezoneJSON output</title>
				<description><![CDATA[ I have removed the line feed, hope this solves your problem.

Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1409.page#5889</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1409.page#5889</link>
				<pubDate><![CDATA[Fri, 22 May 2009 18:32:00]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>