Using jQuery to display a Yahoo! Pipe


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript" src="jquery.js"></script>
  2. <script type="text/javascript">
  3. $(document).ready(function() {
  4. $.getJSON("http://pipes.yahoo.com/pipes/pipe.run?_id=PIPEID&\
  5. _render=json&_callback=?",
  6. function(data) {
  7. $.each(data.value.items, function(i, item) {
  8. $('#items').append('<li><a href="' +
  9. item.link + '">' + item.title + '</a></li>');
  10. });
  11. });
  12. });
  13. </script>
  14.  
  15. <ul id="items">
  16. </ul>

URL: http://rigtorp.se/2010/03/14/yahoo-pipes-jquery.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.