My co-workers and I are big fans of the JavaScript framework jQuery. So now that you have your JSON feed, lets put it to good use. If you want the JSON version of the feed, change "format=rss_200" at the end of the query string to "format=json" so that your URL looks like this: It Into jQuery Flickr's API has many other feed formats, so I suggest going to their site to read up on it because there are a lot of things you can do. If we go to the Viget Inspire collection on Flickr, we can click on the feed (orange button, bottom of the page) and bring up a RSS 2.0 feed of all the images in our pool. Anyone with a Flickr account can access a JSON feed of their photos. Both Yahoo! and Google have been offering data from their sites in JSON format for the past couple years. JSON (JavaScript Object Notation) is a data format that is easy to read and language-independent, meaning you can parse it using any programming language. However, you can also display feeds on your site using JavaScript, so in this post I'm going to be talking about a feed format called JSON and how you can use JavaScript to parse it out and display it. There are many different types of feeds, such as RSS or Atom, and many different ways display them on your site, such as using MagpieRSS to parse an RSS feed in PHP. Feeds are the easiest way to view updated content, whether it's through a feed reader or outputted onto a web site.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |