{"id":1489,"date":"2013-05-26T05:28:30","date_gmt":"2013-05-25T19:28:30","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1489"},"modified":"2020-06-07T22:23:28","modified_gmt":"2020-06-07T12:23:28","slug":"random-images-of-feed-using-javascript-and-json-and-jquery","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/random-images-of-feed-using-javascript-and-json-and-jquery\/","title":{"rendered":"Random Images of Feed via Javascript JSON jQuery Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/Randoms\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Random Images of Feed using Javascript and JSON and jQuery\" src=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/Randoms\/RandomFlickrFeed.jpg\" title=\"Random Images of Feed using Javascript and JSON and jQuery\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Random Images of Feed using Javascript and JSON and jQuery<\/p><\/div>\n<p>There are many ways to present image data on the Web, and Javascript can be used in many ways to present the data in so many ways.   Here we use some image data from a Flickr Feed image hosting data set and present a table of Random Images which constantly changes.   Hope you enjoy the tutorial above (or below, but not in the fourth, fifth or sixth dimensions &#8230; actually not too sure about the third either, come to think of it).<\/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='DOM' href='http:\/\/en.wikipedia.org\/wiki\/Document_Object_Model'>Document Object Model<\/a><\/li>\n<li><a target=_blank title='HTML elements' href='https:\/\/en.wikipedia.org\/wiki\/HTML_element'>HTML elements<\/a><\/li>\n<\/ul>\n<p>Link to Random Images of Flickr Feed live run <a target=_blank title='Random Images of Flickr Feed' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/Randoms\/'> for rjmprogramming.com.au Flickr photo set (latest 20)<\/a>.<\/p>\n<p>Download source code and rename to <a target=_blank title='Random Images of rmetimages Flickr feed (latest 20)' href='http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/Randoms\/RandomsOfFlickrFeed.html_GETME'>RandomsOfFlickrFeed.html<\/a>.<\/p>\n<p><strong>Earlier tutorial:<\/strong><br \/>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"JSON and jQuery Javascript Flickr Feed Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Javascript\/jQuery\/FlickrFeed\/Flickr_Ideas-0of.jpg\" title=\"JSON and jQuery Javascript Flickr Feed Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">JSON and jQuery Javascript Flickr Feed Tutorial<\/p><\/div><\/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\/'>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\/FlickrFeed\/'> for rjmprogramming.com.au Flickr photo set (latest 20)<\/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='rmetimages Flickr feed (latest 20)' href='http:\/\/www.rjmprogramming.com.au\/FlickrFeed\/FlickrFeed_jQuery_Json.html_GETME'>FlickrFeed_jQuery_Json.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:alert(eval(512 \/ 380));<br \/>\njavascript:alert(eval(512 * 380));<br \/>\njavascript:alert(eval(512 &#8211; 380));<br \/>\njavascript:alert(eval(512 + 380));<br \/>\njavascript:alert(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='#d1489' onclick='var dv=document.getElementById(\"d1489\"); 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='d1489' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are many ways to present image data on the Web, and Javascript can be used in many ways to present the data in so many ways. Here we use some image data from a Flickr Feed image hosting data &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/random-images-of-feed-using-javascript-and-json-and-jquery\/\">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":[4,12,30,37],"tags":[84,412,445,652,663,664,926,931,997,1026,1076,1319,1480],"class_list":["post-1489","post","type-post","status-publish","format-standard","hentry","category-animation","category-elearning","category-photography","category-tutorials","tag-animation-2","tag-feed","tag-flickr","tag-javascript","tag-jquery","tag-json","tag-photo-sharing","tag-photography","tag-programming","tag-random-images","tag-rss-feed","tag-tutorial","tag-xml"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1489"}],"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=1489"}],"version-history":[{"count":2,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1489\/revisions"}],"predecessor-version":[{"id":49230,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1489\/revisions\/49230"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=1489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=1489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}