Posted By

baires on 07/07/10


Tagged

jquery yahoo pipes


Versions (?)

Using jQuery to display a Yahoo! Pipe


 / Published in: JavaScript
 

URL: http://rigtorp.se/2010/03/14/yahoo-pipes-jquery.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>

Report this snippet  

You need to login to post a comment.