<?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: Introduction to JavaScript templating using mustache.js</title>
	<atom:link href="http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/</link>
	<description>the blog of lynda.com</description>
	<lastBuildDate>Mon, 20 May 2013 15:07:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Sergi</title>
		<link>http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/comment-page-1/#comment-1025290</link>
		<dc:creator>Sergi</dc:creator>
		<pubDate>Mon, 25 Feb 2013 00:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://admin.blog.lynda.com/?p=16966#comment-1025290</guid>
		<description><![CDATA[Excellent, yeah, putting the json on the same server solved the problem. Thanks! Looking forward to your blog on underscore.]]></description>
		<content:encoded><![CDATA[<p>Excellent, yeah, putting the json on the same server solved the problem. Thanks! Looking forward to your blog on underscore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Villalobos, lynda.com author</title>
		<link>http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/comment-page-1/#comment-1025157</link>
		<dc:creator>Ray Villalobos, lynda.com author</dc:creator>
		<pubDate>Sun, 24 Feb 2013 22:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://admin.blog.lynda.com/?p=16966#comment-1025157</guid>
		<description><![CDATA[Hey Sergi,

When you upload to a server, you have to make sure that the JSON and the HTML file are on the same server. This is called a same domain policy. It&#039;s what&#039;s probably happening. You might be placing the JSON file on the server, but trying to access the HTML file locally.]]></description>
		<content:encoded><![CDATA[<p>Hey Sergi,</p>
<p>When you upload to a server, you have to make sure that the JSON and the HTML file are on the same server. This is called a same domain policy. It&#8217;s what&#8217;s probably happening. You might be placing the JSON file on the server, but trying to access the HTML file locally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergi</title>
		<link>http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/comment-page-1/#comment-1024558</link>
		<dc:creator>Sergi</dc:creator>
		<pubDate>Sun, 24 Feb 2013 16:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://admin.blog.lynda.com/?p=16966#comment-1024558</guid>
		<description><![CDATA[Hi, Ray, 

I had been testing the sample locally, using Coda and it was working fine.  However, I&#039;ve come to realize that it doesn&#039;t work uploaded to a server; or in any of my local browsers (Safari, FF, Chrome).  The json won&#039;t parse.  This includes the gist on GitHub.  For some reason Coda is able to parse it in its local preview window.  

What do you suspect is the problem?

thanks]]></description>
		<content:encoded><![CDATA[<p>Hi, Ray, </p>
<p>I had been testing the sample locally, using Coda and it was working fine.  However, I&#8217;ve come to realize that it doesn&#8217;t work uploaded to a server; or in any of my local browsers (Safari, FF, Chrome).  The json won&#8217;t parse.  This includes the gist on GitHub.  For some reason Coda is able to parse it in its local preview window.  </p>
<p>What do you suspect is the problem?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Villalobos, lynda.com author</title>
		<link>http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/comment-page-1/#comment-923336</link>
		<dc:creator>Ray Villalobos, lynda.com author</dc:creator>
		<pubDate>Mon, 14 Jan 2013 03:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://admin.blog.lynda.com/?p=16966#comment-923336</guid>
		<description><![CDATA[Thanks Sergi,

I&#039;m actually working on a series of JavaScript courses. One on AJAX should be coming out soon and the one I&#039;m writing right now is on JSON. I&#039;m also going to be working on an article on underscore and wordpress for my blog. http://iviewsource.com. 

As for your question. If it doesn&#039;t come as an array, then it&#039;s just an object, so you can start using dot notation to access the variables like this:

	$.getJSON(&#039;https://graph.facebook.com/barackobama&#039;, function(data) {
		console.log(data.birthday);
	});


Make sure you check out the article in my blog on JSON for beginners. http://iviewsource.com/codingtutorials/getting-started-with-javascript-object-notation-json-for-absolute-beginners/]]></description>
		<content:encoded><![CDATA[<p>Thanks Sergi,</p>
<p>I&#8217;m actually working on a series of JavaScript courses. One on AJAX should be coming out soon and the one I&#8217;m writing right now is on JSON. I&#8217;m also going to be working on an article on underscore and wordpress for my blog. <a href="http://iviewsource.com" rel="nofollow">http://iviewsource.com</a>. </p>
<p>As for your question. If it doesn&#8217;t come as an array, then it&#8217;s just an object, so you can start using dot notation to access the variables like this:</p>
<p>	$.getJSON(&#8216;https://graph.facebook.com/barackobama&#8217;, function(data) {<br />
		console.log(data.birthday);<br />
	});</p>
<p>Make sure you check out the article in my blog on JSON for beginners. <a href="http://iviewsource.com/codingtutorials/getting-started-with-javascript-object-notation-json-for-absolute-beginners/" rel="nofollow">http://iviewsource.com/codingtutorials/getting-started-with-javascript-object-notation-json-for-absolute-beginners/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergi</title>
		<link>http://blog.lynda.com/2012/12/27/introduction-to-javascript-templating-using-mustache-js/comment-page-1/#comment-919017</link>
		<dc:creator>Sergi</dc:creator>
		<pubDate>Sat, 12 Jan 2013 02:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://admin.blog.lynda.com/?p=16966#comment-919017</guid>
		<description><![CDATA[You walk us through this so concisely, Ray.  I&#039;ve been hearing about mustache.js, underscore.js, etc for a year or two now but never trusted a tutorial to make it clear and concise enough.

It&#039;s great of you to offer up the JSON formatted data too.  I attended/presented at BarCamp, LA once.

it would be great if you did Lynda course that focused on API&#039;s and JSON data and templating, maybe even going into differences between server side and client side templating.  No front end developer position comes without questions regarding our experiences using API&#039;s.

i have a technical question related to this:
at the following url, you&#039;ll find some JSON. We don&#039;t have the name of the array as you did (#speakers), so how can we still hook into this data as you did in your example?  https://graph.facebook.com/barackobama

thanks,

sergi]]></description>
		<content:encoded><![CDATA[<p>You walk us through this so concisely, Ray.  I&#8217;ve been hearing about mustache.js, underscore.js, etc for a year or two now but never trusted a tutorial to make it clear and concise enough.</p>
<p>It&#8217;s great of you to offer up the JSON formatted data too.  I attended/presented at BarCamp, LA once.</p>
<p>it would be great if you did Lynda course that focused on API&#8217;s and JSON data and templating, maybe even going into differences between server side and client side templating.  No front end developer position comes without questions regarding our experiences using API&#8217;s.</p>
<p>i have a technical question related to this:<br />
at the following url, you&#8217;ll find some JSON. We don&#8217;t have the name of the array as you did (#speakers), so how can we still hook into this data as you did in your example?  <a href="https://graph.facebook.com/barackobama" rel="nofollow">https://graph.facebook.com/barackobama</a></p>
<p>thanks,</p>
<p>sergi</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching using memcached
Object Caching 376/416 objects using memcached

 Served from: blog.lynda.com @ 2013-05-20 22:39:24 by W3 Total Cache -->