<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Lightweight JSONP javascript library</title>
	<atom:link href="http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/</link>
	<description>nonobtrusive web development and other stuff</description>
	<lastBuildDate>Mon, 30 Jan 2012 11:18:21 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gabriel</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-268</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Fri, 06 Jan 2012 16:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-268</guid>
		<description>Hey, thank you very much for the code!

I just wanted to let you know that I found an improvement you can make to it.

When you say:

query = &quot;?&quot;;

Keep in mind that the request URL may already have a query string in it, and thus the &quot;?&quot; should be replaced with a &quot;&amp;&quot;.

What do you think?</description>
		<content:encoded><![CDATA[<p>Hey, thank you very much for the code!</p>
<p>I just wanted to let you know that I found an improvement you can make to it.</p>
<p>When you say:</p>
<p>query = &#8220;?&#8221;;</p>
<p>Keep in mind that the request URL may already have a query string in it, and thus the &#8220;?&#8221; should be replaced with a &#8220;&amp;&#8221;.</p>
<p>What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralph Bunker</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-205</link>
		<dc:creator>Ralph Bunker</dc:creator>
		<pubDate>Tue, 21 Jun 2011 16:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-205</guid>
		<description>Thanks for the code. I feel that I fully understand the jsonp pattern now. 

But why are you setting window[jsonp] to null after deleting it? Flanagan&#039;s book does not use that pattern.</description>
		<content:encoded><![CDATA[<p>Thanks for the code. I feel that I fully understand the jsonp pattern now. </p>
<p>But why are you setting window[jsonp] to null after deleting it? Flanagan&#8217;s book does not use that pattern.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Karlsson</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-202</link>
		<dc:creator>Erik Karlsson</dc:creator>
		<pubDate>Wed, 08 Jun 2011 06:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-202</guid>
		<description>Of course it should. Thanks for pointing it out.</description>
		<content:encoded><![CDATA[<p>Of course it should. Thanks for pointing it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Smith</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-201</link>
		<dc:creator>Bryan Smith</dc:creator>
		<pubDate>Sat, 04 Jun 2011 07:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-201</guid>
		<description>Thanks!

I think the sample code should try to delete window[jsonp] before setting it to null.</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>I think the sample code should try to delete window[jsonp] before setting it to null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slava Shkodin</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-195</link>
		<dc:creator>Slava Shkodin</dc:creator>
		<pubDate>Thu, 05 May 2011 16:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-195</guid>
		<description>Hi, Erik. I have one question about your code (sorry, if it is a little bit stupid). I can&#039;t understand why do you use both onload and onreadystatechange events? Why not simply onload?</description>
		<content:encoded><![CDATA[<p>Hi, Erik. I have one question about your code (sorry, if it is a little bit stupid). I can&#8217;t understand why do you use both onload and onreadystatechange events? Why not simply onload?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Karlsson</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-192</link>
		<dc:creator>Erik Karlsson</dc:creator>
		<pubDate>Fri, 29 Apr 2011 06:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-192</guid>
		<description>@ysched: I&#039;ve now updated the post with encodeURIComponent.</description>
		<content:encoded><![CDATA[<p>@ysched: I&#8217;ve now updated the post with encodeURIComponent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Karlsson</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-191</link>
		<dc:creator>Erik Karlsson</dc:creator>
		<pubDate>Fri, 29 Apr 2011 06:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-191</guid>
		<description>@yched: of course they should be, you&#039;re right. Thanks for your comment</description>
		<content:encoded><![CDATA[<p>@yched: of course they should be, you&#8217;re right. Thanks for your comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yched</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-190</link>
		<dc:creator>yched</dc:creator>
		<pubDate>Thu, 28 Apr 2011 15:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-190</guid>
		<description>the components in the querystring should be encoded :

query += encodeURIComponent(key) + &quot;=&quot; + encodeURIComponent(params[key]) + &quot;&amp;&quot;;

insetad of
query += key + &quot;=&quot; + params[key] + &quot;&amp;&quot;;</description>
		<content:encoded><![CDATA[<p>the components in the querystring should be encoded :</p>
<p>query += encodeURIComponent(key) + &#8220;=&#8221; + encodeURIComponent(params[key]) + &#8220;&amp;&#8221;;</p>
<p>insetad of<br />
query += key + &#8220;=&#8221; + params[key] + &#8220;&amp;&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Karlsson</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-137</link>
		<dc:creator>Erik Karlsson</dc:creator>
		<pubDate>Mon, 20 Sep 2010 06:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-137</guid>
		<description>Pamela, I&#039;m glad you found this useful. I&#039;ll correct the typo in the sample, thanks for pointing it out.</description>
		<content:encoded><![CDATA[<p>Pamela, I&#8217;m glad you found this useful. I&#8217;ll correct the typo in the sample, thanks for pointing it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pamela Fox</title>
		<link>http://www.nonobtrusive.com/2010/05/20/lightweight-jsonp-without-any-3rd-party-libraries/comment-page-1/#comment-136</link>
		<dc:creator>Pamela Fox</dc:creator>
		<pubDate>Sun, 19 Sep 2010 23:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.nonobtrusive.com/?p=160#comment-136</guid>
		<description>Thanks for this!

I think the sample code should be JSON.get, not JSON.fetch.

Also, I had to add another param to it as I&#039;m using a service that uses a different callback param name than &quot;callback&quot;, unfortunately. Was easy to mod though.

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for this!</p>
<p>I think the sample code should be JSON.get, not JSON.fetch.</p>
<p>Also, I had to add another param to it as I&#8217;m using a service that uses a different callback param name than &#8220;callback&#8221;, unfortunately. Was easy to mod though.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- analytics977 --> 
