943,676 Members | Top Members by Rank

Apr 28th, 2009
0

pls check my rss reader..^^

Expand Post »
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
barbz is offline Offline
15 posts
since Jan 2009
Apr 28th, 2009
0

Re: pls check my rss reader..^^

i already found the solution..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
barbz is offline Offline
15 posts
since Jan 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: rss php feed not working or validating
Next Thread in RSS, Web Services and SOAP Forum Timeline: How do I set path in Tomcat 6 in windows





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC