{"id":5712,"date":"2013-12-27T05:07:28","date_gmt":"2013-12-26T18:07:28","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=5712"},"modified":"2013-12-27T05:07:28","modified_gmt":"2013-12-26T18:07:28","slug":"json-and-jquery-international-signage-flickr-feed-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/json-and-jquery-international-signage-flickr-feed-game-tutorial\/","title":{"rendered":"JSON and jQuery International Signage Flickr Feed Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/RandomsOfInternationalSignageFlickrFeed.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"JSON and jQuery International Signage Flickr Feed Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/InternationalSignage.jpg\" title=\"JSON and jQuery International Signage Flickr Feed Game Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">JSON and jQuery International Signage Flickr Feed Game Tutorial<\/p><\/div>\n<p>Don&#8217;t you love the work of those clever guys and gals who design international signage?   My favourite is that big pile of (is it?) dung for &#8220;road construction going on&#8221;.   When you want to design buttons for an application you touch on the edges of the (skill of the)  genius of their world (maybe that should be &#8220;worlds&#8221;, because I swear those same people must have invented Earth bars on Mars).   Think the world(s) inhabitants might be dividable into those good at this, and those who don&#8217;t have a clue (like yours truly).   Is it one to one with who can roll their tongue?<\/p>\n<p>Anyway, wanted to create a game to do with this &#8230; am sorry if your first language is not English, as the game is asking for English (though if you don&#8217;t mind about the score??!!) &#8230; many thanks to <a target=_blank title='International Signage via Flickr (enthusiasts)' href='http:\/\/api.flickr.com\/services\/feeds\/photos_public.gne?id=49968232@N00&#038;tags=peril&#038;format=json&#038;jsoncallback=?'>creators\/groups\/collectors of this Flickr feed data<\/a> &#8230; and so &#8230;<\/p>\n<p>Web browser users really like to make use of data feeds and one of the protocol formats they are often using when accessing RSS feeds is JSON (and XML), as outlined below in a Wikipedia entry.   In this tutorial we see JavaScript jQuery library functionality accessing the Flickr image hosting share area used by this domain here at rjmprogramming.com.au and then go on to show you some steps in making a Web Application that could access this Flickr image hosting photo data.<\/p>\n<blockquote><p>JSON (pron.: \/\u02c8d\u0292e\u026as\u0252n\/ JAY-sawn, pron.: \/\u02c8d\u0292e\u026as\u0259n\/ JAY-sun), or JavaScript Object Notation, is a text-based open standard designed for human-readable data interchange. It is derived from the JavaScript scripting language for representing simple data structures and associative arrays, called objects. Despite its relationship to JavaScript, it is language-independent, with parsers available for many languages.<\/p>\n<p>The JSON format was originally specified by Douglas Crockford, and is described in RFC 4627. The official Internet media type for JSON is application\/json. The JSON filename extension is .json.<\/p>\n<p>The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, serving as an alternative to XML.<\/p><\/blockquote>\n<p>Click <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/RandomsOfInternationalSignageFlickrFeed.html'>on picture above<\/a> to see the Flickr Feed tutorial using jQuery and JSON.<\/p>\n<p>Link to Flickr Feed live run <a target=_blank title='Flickr Feed' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/RandomsOfInternationalSignageFlickrFeed.html'>for the International Signage game<\/a>.<\/p>\n<p><strong>Below are some good background reading for the concepts of this tutorial all via Wikipedia:<\/strong><\/p>\n<ul>\n<li><a target=_blank title='JSON' href='http:\/\/en.wikipedia.org\/wiki\/JSON'>JSON<\/a><\/li>\n<li><a target=_blank title='XML' href='http:\/\/en.wikipedia.org\/wiki\/XML'>XML<\/a><\/li>\n<li><a target=_blank title='RSS Feed' href='http:\/\/en.wikipedia.org\/wiki\/RSS'>RSS Feed<\/a><\/li>\n<li><a target=_blank title='jQuery' href='http:\/\/en.wikipedia.org\/wiki\/JQuery'>jQuery<\/a><\/li>\n<li><a target=_blank title='JavaScript' href='http:\/\/en.wikipedia.org\/wiki\/Javascript'>JavaScript<\/a><\/li>\n<li><a target=_blank title='Flickr image hosting' href='http:\/\/en.wikipedia.org\/wiki\/Flickr'>Flickr image hosting<\/a><\/li>\n<\/ul>\n<p>Link to Flickr image hosting for rjmprogramming.com.au called <a target=_blank title='rmetimages at Flickr' href='http:\/\/www.flickr.com\/photos\/rjmprogramming\/'>rmetimages<\/a>.<\/p>\n<p>Download programming source code and rename to <a target=_blank title='RandomsOfInternationalSignageFlickrFeed.html' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/RandomsOfInternationalSignageFlickrFeed.html_GETME'>RandomsOfInternationalSignageFlickrFeed.html<\/a>.<\/p>\n<p><strong><em>Did you know &#8230;<\/em><\/strong><br \/>\nJavaScript makes a great easy-access Calculator?<\/p>\n<p>Try typing the lines below into the address bar of your favourite browser:<\/p>\n<p>Javascript: eval(512 \/ 380);<br \/>\nJavascript: eval(512 * 380);<br \/>\nJavascript: eval(512 &#8211; 380);<br \/>\nJavascript: eval(512 + 380);<br \/>\nJavascript: eval(512 % 380);<\/p>\n<p>These days we spend so much time on the Internet it is a much quicker way to get to a calculator!\n<\/p>\n<p>You may want to try the new Android App called <a target=_blank title='Flickr Latest 20' href='https:\/\/play.google.com\/store\/apps\/details?id=com.rjmprogramming.flickrlatest20#?t=W251bGwsMSwyLDIxMiwiY29tLnJqbXByb2dyYW1taW5nLmZsaWNrcmxhdGVzdDIwIl0.'>Flickr Latest 20<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d5712' onclick='var dv=document.getElementById(\"d5712\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Flickr\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d5712' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Don&#8217;t you love the work of those clever guys and gals who design international signage? My favourite is that big pile of (is it?) dung for &#8220;road construction going on&#8221;. When you want to design buttons for an application you &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/json-and-jquery-international-signage-flickr-feed-game-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[412,445,576,619,652,663,664,997,1319],"class_list":["post-5712","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-feed","tag-flickr","tag-html","tag-international-signage","tag-javascript","tag-jquery","tag-json","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5712"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=5712"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5712\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=5712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=5712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=5712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}