pls check my rss reader..^^

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jan 2009
Posts: 15
Reputation: barbz is an unknown quantity at this point 
Solved Threads: 0
barbz barbz is offline Offline
Newbie Poster

pls check my rss reader..^^

 
0
  #1
Apr 28th, 2009
Nothing happens when i select a feed.. can you help me figure out what's wrong/missing?

RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <title>RSS Reader</title>
  7. <script type="text/javascript" src="jquery-1.2.6.min.js" charset="utf-8">
  8. function get_rss_feed() {
  9. $("#feedContent").empty();
  10. $.get('http://barbz.0fees.net/proxy.php?url='+$('#diffFeeds').val(), function(d) {
  11. $(d).find('item').each(function() {
  12. var $item = $(this);
  13. var title = $item.find('title').text();
  14. var link = $item.find('link').text();
  15. var description = $item.find('description').text();
  16. var pubDate = $item.find('pubDate').text();
  17. var html = "<div class=\"entry\"><h2 class=\"postTitle\">" + title + "<\/h2>";
  18. html += "<em class=\"date\">" + pubDate + "</em>";
  19. html += "<p class=\"description\">" + description + "</p>";
  20. html += "<a href=\"" + link + "\" target=\"_blank\">Read More >><\/a><\/div>";
  21. $('#feedContent').append($(html));
  22. });
  23. });
  24. };
  25. </script>
  26. </head>
  27.  
  28. <body>
  29. <div id="container">
  30. <div id="ui">
  31. <h1>Feed Reader</h1>
  32. <form id="selectParser" action="">
  33. <label>Select a feed:</label>
  34. <select id="diffFeeds">
  35. <option value="">Select</option>
  36. <option value="http://feeds.feedburner.com/aralbalkan">Aral Balkan</option>
  37. <option value="http://feeds.feedburner.com/peterelst/">Peter Elst</option>
  38. <option value="http://www.gskinner.com/blog/index.xml">Grant Skinner</option>
  39. <option value="http://blog.andre-michelle.com/feed/">Andre Michelle</option>
  40. <option value="http://feeds.feedburner.com/flashmagazine/rss2">Flash Magazine</option>
  41. <option value="http://casario.blogs.com/mmworld/rss.xml">Marco Casario</option>
  42. <option value="http://www.sephiroth.it/weblog/index.xml">Sephiroth</option>
  43. <option value="http://www.quasimondo.com/index.xml">Quasimondo</option>
  44. <option value="http://feeds.feedburner.com/sebleedelisle">Seb Lee-Delisle</option>
  45. <option value="http://osflash.org/feed.php">OS Flash</option>
  46. </select>
  47. </form>
  48. </div>
  49. <div id="feedContent">&nbsp;</div>
  50. </div>
  51. </body>
  52. </html>

The file where

$.get('http://barbz.0fees.net/proxy.php?url='+$('#diffFeeds').val(), function(d) {

is taken is this..

RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1. <?php
  2. // PHP Proxy
  3. // Loads a XML from any location. Used with Flash/Flex apps to bypass security restrictions
  4. // Author: Paulo Fierro
  5. // January 29, 2006
  6. // usage: proxy.php?url=http://mysite.com/myxml.xml
  7.  
  8. $session = curl_init($_GET['url']); // Open the Curl session
  9. curl_setopt($session, CURLOPT_HEADER, false); // Don't return HTTP headers
  10. curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Do return the contents of the call
  11. $xml = curl_exec($session); // Make the call
  12. header("Content-Type: text/xml"); // Set the content type appropriately
  13. echo $xml; // Spit out the xml
  14. curl_close($session); // And close the session
  15. ?>

i'm new with this..please bare with me..thanks!^^
Last edited by barbz; Apr 28th, 2009 at 4:16 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 15
Reputation: barbz is an unknown quantity at this point 
Solved Threads: 0
barbz barbz is offline Offline
Newbie Poster

Re: pls check my rss reader..^^

 
0
  #2
Apr 28th, 2009
i already found the solution..
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the RSS, Web Services and SOAP Forum
Thread Tools Search this Thread



Tag cloud for RSS, Web Services and SOAP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC